#[repr(transparent)]pub struct Block<'a>(_);
Expand description
Untrusted sallyport
block.
Implementations
sourceimpl<'a> Block<'a>
impl<'a> Block<'a>
sourcepub const fn size_hint(item_count: usize, data_size: usize) -> Option<usize>
pub const fn size_hint(item_count: usize, data_size: usize) -> Option<usize>
Returns the approximate length (of usize
elements) of the block required to fit
item_count
items of biggest size and data_size
bytes of allocated data.
Note, that this function does not account for alignment of the allocated data,
and therefore this is merely a hint and not a precise calculation.
Trait Implementations
sourceimpl<'a> IntoIterator for Block<'a>
impl<'a> IntoIterator for Block<'a>
impl<'a> StructuralPartialEq for Block<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Block<'a>
impl<'a> Send for Block<'a>
impl<'a> Sync for Block<'a>
impl<'a> Unpin for Block<'a>
impl<'a> !UnwindSafe for Block<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more