pub struct OpenOption {
pub flag: &'static str,
pub kwarg: &'static str,
pub kind: Kind,
pub spec: Option<&'static str>,
}Expand description
An option of one open, with no config key: it says how to read one file (#289), so it is a flag, a Python keyword and, for delimited text, a spec key.
Fields§
§flag: &'static strThe flag, without --.
kwarg: &'static str§kind: Kind§spec: Option<&'static str>The key a delimited format spec writes it as.
Trait Implementations§
Source§impl Clone for OpenOption
impl Clone for OpenOption
impl Copy for OpenOption
Source§impl Debug for OpenOption
impl Debug for OpenOption
impl Eq for OpenOption
Source§impl PartialEq for OpenOption
impl PartialEq for OpenOption
impl StructuralPartialEq for OpenOption
Auto Trait Implementations§
impl Freeze for OpenOption
impl RefUnwindSafe for OpenOption
impl Send for OpenOption
impl Sync for OpenOption
impl Unpin for OpenOption
impl UnsafeUnpin for OpenOption
impl UnwindSafe for OpenOption
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