pub struct RegcompFlags(/* private fields */);Expand description
Flags to pass to regcomp.
Implementations§
Source§impl RegcompFlags
impl RegcompFlags
Sourcepub const LITERAL: RegFlags = tre::REG_LITERAL
pub const LITERAL: RegFlags = tre::REG_LITERAL
Interpret regex literally (all characters are non-special); aka REG_NOSPEC
Sourcepub const NOSPEC: RegFlags = tre::REG_NOSPEC
pub const NOSPEC: RegFlags = tre::REG_NOSPEC
Same meaning as RegcompFlags::LITERAL
Sourcepub const NOSUB: RegFlags = tre::REG_NOSUB
pub const NOSUB: RegFlags = tre::REG_NOSUB
Don’t report what was matched; only that it matched.
Sourcepub const RIGHT_ASSOC: RegFlags = tre::REG_RIGHT_ASSOC
pub const RIGHT_ASSOC: RegFlags = tre::REG_RIGHT_ASSOC
Concatenation is right-associative
Trait Implementations§
Source§impl Clone for RegcompFlags
impl Clone for RegcompFlags
Source§fn clone(&self) -> RegcompFlags
fn clone(&self) -> RegcompFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RegcompFlags
Auto Trait Implementations§
impl Freeze for RegcompFlags
impl RefUnwindSafe for RegcompFlags
impl Send for RegcompFlags
impl Sync for RegcompFlags
impl Unpin for RegcompFlags
impl UnsafeUnpin for RegcompFlags
impl UnwindSafe for RegcompFlags
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