Enum wolf_crypto::buf::Buf
source · pub enum Buf {
B128([u8; 128]),
B256([u8; 256]),
B384([u8; 384]),
B512([u8; 512]),
}Variants§
Implementations§
source§impl Buf
impl Buf
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§
impl Copy for Buf
impl StructuralPartialEq for Buf
Auto Trait Implementations§
impl Freeze for Buf
impl RefUnwindSafe for Buf
impl Send for Buf
impl Sync for Buf
impl Unpin for Buf
impl UnwindSafe for Buf
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)