pub struct AadSlice<'s> { /* private fields */ }Expand description
Represents Additional Authenticated Data (AAD) Slice.
Implementations§
Source§impl<'s> AadSlice<'s>
impl<'s> AadSlice<'s>
Sourcepub const fn size(&self) -> Option<u32>
pub const fn size(&self) -> Option<u32>
Returns the length of the underlying slice if it can be represented as a u32.
§Note
AadSlice::EMPTY will always return Some(0).
Sourcepub const fn valid_size(&self) -> bool
pub const fn valid_size(&self) -> bool
Returns true if the length of the underlying slice can be safely represented as a u32.
Trait Implementations§
Source§impl<'s> Ord for AadSlice<'s>
impl<'s> Ord for AadSlice<'s>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'s> PartialOrd for AadSlice<'s>
impl<'s> PartialOrd for AadSlice<'s>
impl<'a> Aad for AadSlice<'a>
impl<'s> Copy for AadSlice<'s>
impl<'s> Eq for AadSlice<'s>
impl<'s> StructuralPartialEq for AadSlice<'s>
Auto Trait Implementations§
impl<'s> Freeze for AadSlice<'s>
impl<'s> RefUnwindSafe for AadSlice<'s>
impl<'s> Send for AadSlice<'s>
impl<'s> Sync for AadSlice<'s>
impl<'s> Unpin for AadSlice<'s>
impl<'s> UnwindSafe for AadSlice<'s>
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