pub struct Config {
pub file: String,
pub pattern: String,
}
Expand description
The necessary configurations for initializing nanogrep.
Fields§
§file: String
The file along with the path in which the pattern search will be conducted.
pattern: String
The pattern to search for in the contents of the file.
Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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