Enum FlagInfoKind
pub enum FlagInfoKind<'a> {
Switch,
Option {
arg_name: &'a str,
},
}
Expand description
The kind of flags.
Variants§
Switch
switch represents a boolean flag,
Option
option is a flag that also has an associated
value. This value is named arg_name
.
Trait Implementations§
§impl<'a> Debug for FlagInfoKind<'a>
impl<'a> Debug for FlagInfoKind<'a>
§impl<'a> Default for FlagInfoKind<'a>
impl<'a> Default for FlagInfoKind<'a>
§fn default() -> FlagInfoKind<'a>
fn default() -> FlagInfoKind<'a>
Returns the “default value” for a type. Read more
§impl<'a> PartialEq for FlagInfoKind<'a>
impl<'a> PartialEq for FlagInfoKind<'a>
§impl<'a> Serialize for FlagInfoKind<'a>
impl<'a> Serialize for FlagInfoKind<'a>
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'a> Eq for FlagInfoKind<'a>
impl<'a> StructuralPartialEq for FlagInfoKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for FlagInfoKind<'a>
impl<'a> RefUnwindSafe for FlagInfoKind<'a>
impl<'a> Send for FlagInfoKind<'a>
impl<'a> Sync for FlagInfoKind<'a>
impl<'a> Unpin for FlagInfoKind<'a>
impl<'a> UnwindSafe for FlagInfoKind<'a>
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