/// Creates a new [`Secret`] filled with zeroed bytes and invokes the
/// callback with a wrapper to the protected memory.
///
/// ```
/// # use runtime::Secret;
/// Secret::<u8>::zero(|s| {
///     assert_eq!(*s, 0);
/// });
/// ```
Creates a new [`Secret`] filled with zeroed bytes and invokes the
callback with a wrapper to the protected memory.


Creates a new [ ` Secret ` ] filled with zeroed bytes and invokes the callback with a wrapper to the protected memory .
pub fn zero<F, A>(f: F) -> A
    where
        F: FnOnce(RefMut<'_, T>) -> A,
    {
        Self::new(|mut s| {
            s.zero();
            f(s)
        })
    }
pub fn zero < F , A > ( f : F ) -> A where F : FnOnce ( RefMut < ' _ , T > ) -> A , { Self :: new ( | mut s | { s . zero ( ) ; f ( s ) } ) }
Creates a new [`Secret`] filled with zeroed bytes and invokes the
callback with a wrapper to the protected memory.
Creates a new [ ` Secret ` ] filled with zeroed bytes and invokes the callback with a wrapper to the protected memory .
f
F
use runtime::secret;
None