pub struct Args {
pub query: String,
pub file_path: String,
pub ignore_case: bool,
}
Expand description
§Struct that defines required/supported arguments
The struct can be used to parse arguments from an iterator.
Fields§
§query: String
Pattern used as a substring search.
file_path: String
Path to the file that should be opened and used for searching.
ignore_case: bool
Whether the search should be case-sensitive or not.
Implementations§
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
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