pub struct ExtKeyParse { /* private fields */ }Implementations§
Source§impl ExtKeyParse
impl ExtKeyParse
pub fn new( prefix: &str, key1: &str, value: &Value, isflag: bool, ishelp: bool, isjsonfile: bool, longprefix: &str, shortprefix: &str, nochange: bool, ) -> Result<ExtKeyParse, Box<dyn Error>>
pub fn is_cmd(&self) -> bool
pub fn string(&self) -> String
pub fn cmd_name(&self) -> String
pub fn help_info(&self) -> String
pub fn func_name(&self) -> String
pub fn get_keyattr(&self, key: &str) -> Option<KeyAttr>
pub fn type_name(&self) -> String
pub fn get_bool_v(&self, k: &str) -> bool
pub fn opt_dest(&self) -> String
pub fn get_string_v(&self, k: &str) -> String
pub fn is_flag(&self) -> bool
pub fn value(&self) -> Value
pub fn get_value_v(&self) -> Value
pub fn long_opt(&self) -> String
pub fn long_prefix(&self) -> String
pub fn short_opt(&self) -> String
pub fn var_name(&self) -> String
pub fn get_nargs_v(&self) -> Nargs
pub fn flag_name(&self) -> String
pub fn short_flag(&self) -> String
pub fn prefix(&self) -> String
Trait Implementations§
Source§impl Clone for ExtKeyParse
impl Clone for ExtKeyParse
Source§fn clone(&self) -> ExtKeyParse
fn clone(&self) -> ExtKeyParse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Ord for ExtKeyParse
impl Ord for ExtKeyParse
Source§impl PartialEq for ExtKeyParse
impl PartialEq for ExtKeyParse
Source§impl PartialOrd for ExtKeyParse
impl PartialOrd for ExtKeyParse
impl Eq for ExtKeyParse
Auto Trait Implementations§
impl Freeze for ExtKeyParse
impl !RefUnwindSafe for ExtKeyParse
impl !Send for ExtKeyParse
impl !Sync for ExtKeyParse
impl Unpin for ExtKeyParse
impl !UnwindSafe for ExtKeyParse
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