Struct pandastd_mini_grep::Config
source · pub struct Config { /* private fields */ }
Expand description
Config 结构体, 用于存储命令行参数
parameters
- query: 查询字符串
- path: 文件路径
- ignore_case: 是否忽略大小写, 默认为 false, 可以通过环境变量 IGNORE_CASE 设置
ignore_case 为 1, true, TRUE, True 时为 true, 其他值为 false
Implementations§
Auto Trait Implementations§
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