Enum Anchored
#[non_exhaustive]
pub enum Anchored
The type of anchored search to perform.
If an Aho-Corasick searcher does not support the anchored mode selected, then the search will return an error or panic, depending on whether a fallible or an infallible routine was called.
Variants
-
No Run an unanchored search. This means a match may occur anywhere at or after the start position of the search up until the end position of the search.
-
Yes Run an anchored search. This means that a match must begin at the start position of the search and end before the end position of the search.
Implementations
impl Anchored
fn is_anchored(&self) -> boolReturns true if and only if this anchor mode corresponds to an anchored search.
Example
use Anchored; assert!; assert!;
Trait Implementations
impl Clone for Anchored
fn clone(&self) -> Self
impl Copy for Anchored
impl Debug for Anchored
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Anchored
impl PartialEq for Anchored
fn eq(&self, other: &Self) -> bool
impl StructuralPartialEq for Anchored
Auto Trait Implementations
impl Freeze for Anchored
impl RefUnwindSafe for Anchored
impl Send for Anchored
impl Sync for Anchored
impl Unpin for Anchored
impl UnsafeUnpin for Anchored
impl UnwindSafe for Anchored
Blanket Implementations
impl<T> Any for Anchored
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Anchored
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Anchored
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Anchored
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Anchored
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Anchored
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Anchored
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Anchored
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Anchored
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>