pub enum ArgType {
Float,
Enum(&'static [&'static str]),
Repeated {
typ: Box<ArgType>,
min: usize,
max: Option<usize>,
},
OneOf(Vec<ArgType>),
Optional(Box<ArgType>),
}Expand description
A function argument
Variants§
Float
A floating point argument
Enum(&'static [&'static str])
A enum argument, the value can be any of the values
Repeated
A repeated argument
Fields
OneOf(Vec<ArgType>)
The argument can be one of the following types
Optional(Box<ArgType>)
Optional argument
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArgType
impl RefUnwindSafe for ArgType
impl Send for ArgType
impl Sync for ArgType
impl Unpin for ArgType
impl UnsafeUnpin for ArgType
impl UnwindSafe for ArgType
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