Struct memsecurity::ZeroizeByte
source · pub struct ZeroizeByte(/* private fields */);
Expand description
Implementations§
source§impl ZeroizeByte
impl ZeroizeByte
sourcepub fn new_zeroed() -> Self
pub fn new_zeroed() -> Self
Initialize a new byte which is zeroed byte
sourcepub fn set(&mut self, value: u8) -> &mut Self
pub fn set(&mut self, value: u8) -> &mut Self
File the current array with new values specified by the method parameter value: u8
sourcepub fn expose_borrowed(&self) -> &u8
pub fn expose_borrowed(&self) -> &u8
Expose the internal as an borrowed byte
Trait Implementations§
source§impl BorshDeserialize for ZeroizeByte
impl BorshDeserialize for ZeroizeByte
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for ZeroizeByte
impl BorshSerialize for ZeroizeByte
source§impl Debug for ZeroizeByte
impl Debug for ZeroizeByte
source§impl Drop for ZeroizeByte
impl Drop for ZeroizeByte
source§impl PartialEq for ZeroizeByte
impl PartialEq for ZeroizeByte
source§impl Zeroize for ZeroizeByte
impl Zeroize for ZeroizeByte
impl Eq for ZeroizeByte
impl ZeroizeOnDrop for ZeroizeByte
Auto Trait Implementations§
impl RefUnwindSafe for ZeroizeByte
impl Send for ZeroizeByte
impl Sync for ZeroizeByte
impl Unpin for ZeroizeByte
impl UnwindSafe for ZeroizeByte
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more