pub enum MatchHint {
Unsupported,
NoMatches,
MaybeMatch(usize),
}Expand description
Hinting where the pattern might be matching the target
Variants§
Unsupported
A match hint could not be generated
NoMatches
The pattern will not match the target
MaybeMatch(usize)
The pattern may match the target at the given offset
Trait Implementations§
Source§impl Ord for MatchHint
impl Ord for MatchHint
Source§impl PartialOrd for MatchHint
impl PartialOrd for MatchHint
impl Copy for MatchHint
impl Eq for MatchHint
impl StructuralPartialEq for MatchHint
Auto Trait Implementations§
impl Freeze for MatchHint
impl RefUnwindSafe for MatchHint
impl Send for MatchHint
impl Sync for MatchHint
impl Unpin for MatchHint
impl UnwindSafe for MatchHint
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