Enum combu::flag::FlagValue [−][src]
Expand description
Enum for storage FlagValue
Variants
Bool(bool)
Variant shows bool flag value
Tuple Fields of Bool
0: bool
String(String)
Variant shows string flag value
Tuple Fields of String
0: String
Int(isize)
Variant shows int flag value
Tuple Fields of Int
0: isize
Float(f64)
Variant for float flag value
Tuple Fields of Float
0: f64
Invalid(String)
Variant for invalid flag value
Tuple Fields of Invalid
0: String
Variant for no flag value
Implementations
Get &self’s corresponding type of FlagType. Returns None if &self is a invalid flag value. FlagValueに対応するFlagTypeを取得する
Returns true if &self’s FlagType is flag_type.
Gets bool FlagValue from string
Gets string from self
Returns true if self is FlagValue::Bool(true)
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for FlagValue
impl UnwindSafe for FlagValue
Blanket Implementations
Mutably borrows from an owned value. Read more