pub struct TagLessEq<TagA, TagB> { /* private fields */ }Expand description
A proof that the length if A is smaller or equal to B.
This guarantees that indices of A can also be used in B.
Implementations§
Source§impl<A: Tag, B: Tag> TagLessEq<A, B>
impl<A: Tag, B: Tag> TagLessEq<A, B>
Sourcepub fn with_sizes(a: ExactSize<A>, b: ExactSize<B>) -> Option<Self>
pub fn with_sizes(a: ExactSize<A>, b: ExactSize<B>) -> Option<Self>
Construct the proof from the sizes of A and B.
Sourcepub fn with_pair(a: Capacity<A>, b: Prefix<B>) -> Option<Self>
pub fn with_pair(a: Capacity<A>, b: Prefix<B>) -> Option<Self>
Construct the proof from a pair of bounds for A and B.
The Capacity upper bounds all indices applicable to A, and the exact size. The Prefix
lower bounds all lengths and the exact size.
This returns Some when the lower bound for B is not smaller than the upper bound for A.
Trait Implementations§
impl<TagA: Copy, TagB: Copy> Copy for TagLessEq<TagA, TagB>
Auto Trait Implementations§
impl<TagA, TagB> Freeze for TagLessEq<TagA, TagB>
impl<TagA, TagB> RefUnwindSafe for TagLessEq<TagA, TagB>where
TagA: RefUnwindSafe,
TagB: RefUnwindSafe,
impl<TagA, TagB> Send for TagLessEq<TagA, TagB>
impl<TagA, TagB> Sync for TagLessEq<TagA, TagB>
impl<TagA, TagB> Unpin for TagLessEq<TagA, TagB>
impl<TagA, TagB> UnwindSafe for TagLessEq<TagA, TagB>where
TagA: UnwindSafe,
TagB: UnwindSafe,
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