Struct cpython::argparse::ParamDescription
source · pub struct ParamDescription<'a> {
pub name: &'a str,
pub is_optional: bool,
}
Expand description
Description of a python parameter; used for parse_args()
.
Fields§
§name: &'a str
The name of the parameter.
is_optional: bool
Whether the parameter is optional.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ParamDescription<'a>
impl<'a> RefUnwindSafe for ParamDescription<'a>
impl<'a> Send for ParamDescription<'a>
impl<'a> Sync for ParamDescription<'a>
impl<'a> Unpin for ParamDescription<'a>
impl<'a> UnwindSafe for ParamDescription<'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