pub struct MinLen<const N: usize>;Trait Implementations§
Source§impl<const N: usize> Anchor for MinLen<N>
impl<const N: usize> Anchor for MinLen<N>
Source§fn assert<'a, H: Haystack<'a>>(hay: &H) -> ControlFlow<(), bool>
fn assert<'a, H: Haystack<'a>>(hay: &H) -> ControlFlow<(), bool>
Asserts that each anchor in this set could possibly succeed with the given haystack state.
In the presence of a start anchor, the haystack’s position at the start doesn’t need to be
checked again. Read more
Source§fn assert_fixed<'a, H: Haystack<'a>>(hay: &H) -> bool
fn assert_fixed<'a, H: Haystack<'a>>(hay: &H) -> bool
Asserts that each anchor in this set could possibly succeed with the given haystack state.
In the presence of a start anchor, the haystack’s position at the start doesn’t need to be
checked again. This variant provide no information about whether the search should continue
and should be called by searches that intend to match the entirety of the provided haystack.
impl<const N: usize> Copy for MinLen<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for MinLen<N>
impl<const N: usize> RefUnwindSafe for MinLen<N>
impl<const N: usize> Send for MinLen<N>
impl<const N: usize> Sync for MinLen<N>
impl<const N: usize> Unpin for MinLen<N>
impl<const N: usize> UnsafeUnpin for MinLen<N>
impl<const N: usize> UnwindSafe for MinLen<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