#[repr(C)]pub struct InputOpts {
pub earliest: i32,
pub anchored: i32,
pub anchored_pattern: i32,
}
Expand description
This type is a mirror of [regex_automata::Input
], with guaranteed
alignment and no-substructs.
Fields§
§earliest: i32
Whether to execute an “earliest” search or not.
anchored: i32
Sets the anchor mode of a search.
The translation:
- [
Anchored::No
] =>0
- [
Anchored::Yes
] =>1
- [
Anchored::Pattern
] =>2
anchored_pattern: i32
If anchored
is equivalent to [Anchored::Pattern
], then this is the
[PatternID
][regex_automata::util::primitives::PatternID].
Otherwise, it is set to 0.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InputOpts
impl RefUnwindSafe for InputOpts
impl Send for InputOpts
impl Sync for InputOpts
impl Unpin for InputOpts
impl UnwindSafe for InputOpts
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