Struct molybdenum::cli::Options

source ·
pub struct Options {
Show 25 fields pub output_help: bool, pub roots: Vec<String>, pub verbose_level: i32, pub output_only: Option<OutputOnly>, pub null_separated_output: bool, pub search_hidden_files: bool, pub search_ignored_files: bool, pub search_pattern_opt: Option<String>, pub capture_group_prefix_opt: Option<String>, pub invert_pattern: bool, pub replace_opt: Option<String>, pub simulate_replace: bool, pub word_boundary: bool, pub case_sensitive: bool, pub extensions: Vec<OsString>, pub extension_sets: Vec<OsString>, pub search_binary_files: bool, pub file_include_pattern_vec: Vec<String>, pub file_exclude_pattern_vec: Vec<String>, pub output_after: u64, pub output_before: u64, pub input_from_file_opt: Option<bool>, pub console_output: Option<bool>, pub color_output: Option<bool>, pub open: bool,
}

Fields§

§output_help: bool§roots: Vec<String>§verbose_level: i32§output_only: Option<OutputOnly>§null_separated_output: bool§search_hidden_files: bool§search_ignored_files: bool§search_pattern_opt: Option<String>§capture_group_prefix_opt: Option<String>§invert_pattern: bool§replace_opt: Option<String>§simulate_replace: bool§word_boundary: bool§case_sensitive: bool§extensions: Vec<OsString>§extension_sets: Vec<OsString>§search_binary_files: bool§file_include_pattern_vec: Vec<String>§file_exclude_pattern_vec: Vec<String>§output_after: u64§output_before: u64§input_from_file_opt: Option<bool>§console_output: Option<bool>§color_output: Option<bool>§open: bool

Implementations§

source§

impl Options

source

pub fn new() -> Options

source

pub fn parse(&mut self, args: Args) -> Result<()>

source

pub fn set_search_pattern(&mut self, pattern: &str)

source

pub fn help(&self) -> String

Trait Implementations§

source§

impl Debug for Options

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Options

source§

fn default() -> Options

Returns the “default value” for a type. Read more
source§

impl PartialEq for Options

source§

fn eq(&self, other: &Options) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for Options

source§

impl StructuralPartialEq for Options

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.