pub struct SmallKey { /* private fields */ }Expand description
A file encryption key of at most 32 bytes.
Inline storage, because every key in this crate is between 5 and 32 bytes
and heap-allocating one only adds a place for it to be copied. The
invariant is len <= 32.
fmt::Debug is implemented by hand and prints only the length: key
material must never reach a log line or a diagnostic entry, and the derived
implementation would put it in both.
Implementations§
Trait Implementations§
impl Eq for SmallKey
impl StructuralPartialEq for SmallKey
Auto Trait Implementations§
impl Freeze for SmallKey
impl RefUnwindSafe for SmallKey
impl Send for SmallKey
impl Sync for SmallKey
impl Unpin for SmallKey
impl UnsafeUnpin for SmallKey
impl UnwindSafe for SmallKey
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