Enum wolf_crypto::buf::SecretBuf
source · pub enum SecretBuf {
B128([u8; 128]),
B256([u8; 256]),
B384([u8; 384]),
B512([u8; 512]),
}Variants§
Implementations§
source§impl SecretBuf
impl SecretBuf
pub const fn is_sensitive(&self) -> bool
pub const fn is_128(&self) -> bool
pub const fn is_256(&self) -> bool
pub const fn is_384(&self) -> bool
pub const fn is_512(&self) -> bool
pub const fn len(&self) -> usize
pub const fn as_slice(&self) -> &[u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SecretBuf
impl RefUnwindSafe for SecretBuf
impl Send for SecretBuf
impl Sync for SecretBuf
impl Unpin for SecretBuf
impl UnwindSafe for SecretBuf
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)