pub struct GrepConfig {
pub query: String,
pub file_path: String,
pub ignore_case: bool,
}
Expand description
Required configuration for grep.
Fields§
§query: String
Substring to query for.
file_path: String
Path of the file to query.
ignore_case: bool
Ignore-case flag.
Implementations§
Source§impl GrepConfig
impl GrepConfig
Sourcepub fn build(args: &[String]) -> Result<GrepConfig, &'static str>
pub fn build(args: &[String]) -> Result<GrepConfig, &'static str>
Builds the GrepConfig from command-line arguments
Auto Trait Implementations§
impl Freeze for GrepConfig
impl RefUnwindSafe for GrepConfig
impl Send for GrepConfig
impl Sync for GrepConfig
impl Unpin for GrepConfig
impl UnwindSafe for GrepConfig
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