pub struct RegexOption {
pub type: TypeTrue,
pub enabled: bool,
}
Fields§
§type: TypeTrue
This is the type of the regex option. Options are: - ignore-case
: Ignores the case of the text being matched. Add - whole-word
: Matches whole words only. - multi-line
: Matches across multiple lines.
enabled: bool
This is whether to enable the option. @default false
Implementations§
Source§impl RegexOption
impl RegexOption
pub fn new(type: TypeTrue, enabled: bool) -> RegexOption
Trait Implementations§
Source§impl Clone for RegexOption
impl Clone for RegexOption
Source§fn clone(&self) -> RegexOption
fn clone(&self) -> RegexOption
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RegexOption
impl Debug for RegexOption
Source§impl Default for RegexOption
impl Default for RegexOption
Source§fn default() -> RegexOption
fn default() -> RegexOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RegexOption
impl<'de> Deserialize<'de> for RegexOption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RegexOption
impl PartialEq for RegexOption
Source§impl Serialize for RegexOption
impl Serialize for RegexOption
impl StructuralPartialEq for RegexOption
Auto Trait Implementations§
impl Freeze for RegexOption
impl RefUnwindSafe for RegexOption
impl Send for RegexOption
impl Sync for RegexOption
impl Unpin for RegexOption
impl UnwindSafe for RegexOption
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