pub struct Flags {
pub i: bool,
pub m: bool,
pub s: bool,
pub u: bool,
pub x: bool,
pub a: bool,
}Expand description
Set of semantic flags. Flags that do not change the language (ES g, y,
d) are accepted by Flags::from_letters and reported as notes.
Fields§
§i: booli case-insensitive.
m: boolm multiline.
s: bools dot matches newline.
u: boolu Unicode.
x: boolx extended / verbose.
a: boola ASCII-only classes.
Implementations§
Source§impl Flags
impl Flags
Sourcepub fn valid_letters(dialect: Dialect) -> &'static str
pub fn valid_letters(dialect: Dialect) -> &'static str
Flags valid for dialect, as shown in RX-P003.
Sourcepub fn from_letters(
dialect: Dialect,
letters: &str,
) -> Result<(Flags, Vec<String>), RexactError>
pub fn from_letters( dialect: Dialect, letters: &str, ) -> Result<(Flags, Vec<String>), RexactError>
Parse option letters for a dialect. Returns the flags and notes about letters that were accepted but do not change the language.
Trait Implementations§
impl Copy for Flags
impl Eq for Flags
impl StructuralPartialEq for Flags
Auto Trait Implementations§
impl Forget for Flags
impl Freeze for Flags
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnsafeUnpin for Flags
impl UnwindSafe for Flags
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