pub struct MaxLen<const N: usize>;Trait Implementations§
Source§impl<const N: usize> Anchor for MaxLen<N>
impl<const N: usize> Anchor for MaxLen<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 MaxLen<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for MaxLen<N>
impl<const N: usize> RefUnwindSafe for MaxLen<N>
impl<const N: usize> Send for MaxLen<N>
impl<const N: usize> Sync for MaxLen<N>
impl<const N: usize> Unpin for MaxLen<N>
impl<const N: usize> UnsafeUnpin for MaxLen<N>
impl<const N: usize> UnwindSafe for MaxLen<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