Enum ExtractKind
#[non_exhaustive]
pub enum ExtractKind
The kind of literals to extract from an Hir expression.
The default extraction kind is Prefix.
Variants
-
Prefix Extracts only prefix literals from a regex.
-
Suffix Extracts only suffix literals from a regex.
Note that the sequence returned by suffix literals currently may not correctly represent leftmost-first or "preference" order match semantics.
Implementations
impl ExtractKind
fn is_prefix(&self) -> boolReturns true if this kind is the
Prefixvariant.fn is_suffix(&self) -> boolReturns true if this kind is the
Suffixvariant.
Trait Implementations
impl Clone for ExtractKind
fn clone(&self) -> Self
impl Debug for ExtractKind
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for ExtractKind
fn default() -> ExtractKind