Struct faer_core::constrained::Size
source · pub struct Size<'n>(/* private fields */);Implementations§
source§impl<'size> Size<'size>
impl<'size> Size<'size>
pub fn with<R>(n: usize, f: impl for<'n> FnOnce(Size<'n>) -> R) -> R
pub fn with2<R>( m: usize, n: usize, f: impl for<'m, 'n> FnOnce(Size<'m>, Size<'n>) -> R ) -> R
pub unsafe fn new_raw_unchecked(n: usize) -> Self
pub fn into_inner(self) -> usize
pub fn indices(self) -> impl DoubleEndedIterator<Item = Idx<'size, usize>>
pub fn check<I: Index>(self, idx: I) -> Idx<'size, I>
Methods from Deref<Target = usize>§
pub const MIN: usize = 0usize
pub const MAX: usize = 18_446_744_073_709_551_615usize
pub const BITS: u32 = 64u32
Trait Implementations§
source§impl<'n> Ord for Size<'n>
impl<'n> Ord for Size<'n>
source§impl<'n> PartialEq for Size<'n>
impl<'n> PartialEq for Size<'n>
source§impl<'n> PartialOrd for Size<'n>
impl<'n> PartialOrd for Size<'n>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<'n> Copy for Size<'n>
impl<'n> Eq for Size<'n>
impl<'n> StructuralEq for Size<'n>
impl<'n> StructuralPartialEq for Size<'n>
Auto Trait Implementations§
impl<'n> RefUnwindSafe for Size<'n>
impl<'n> Send for Size<'n>
impl<'n> Sync for Size<'n>
impl<'n> Unpin for Size<'n>
impl<'n> UnwindSafe for Size<'n>
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