Struct jj_cli::cli_util::RevisionArgValueParser
source · pub struct RevisionArgValueParser;Trait Implementations§
source§impl Clone for RevisionArgValueParser
impl Clone for RevisionArgValueParser
source§fn clone(&self) -> RevisionArgValueParser
fn clone(&self) -> RevisionArgValueParser
Returns a copy 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 TypedValueParser for RevisionArgValueParser
impl TypedValueParser for RevisionArgValueParser
§type Value = RevisionArg
type Value = RevisionArg
Argument’s value type
source§fn parse_ref(
&self,
cmd: &Command,
arg: Option<&Arg>,
value: &OsStr
) -> Result<Self::Value, Error>
fn parse_ref( &self, cmd: &Command, arg: Option<&Arg>, value: &OsStr ) -> Result<Self::Value, Error>
Parse the argument value Read more
§fn parse_ref_(
&self,
cmd: &Command,
arg: Option<&Arg>,
value: &OsStr,
_source: ValueSource
) -> Result<Self::Value, Error<RichFormatter>>
fn parse_ref_( &self, cmd: &Command, arg: Option<&Arg>, value: &OsStr, _source: ValueSource ) -> Result<Self::Value, Error<RichFormatter>>
Parse the argument value Read more
§fn parse(
&self,
cmd: &Command,
arg: Option<&Arg>,
value: OsString
) -> Result<Self::Value, Error<RichFormatter>>
fn parse( &self, cmd: &Command, arg: Option<&Arg>, value: OsString ) -> Result<Self::Value, Error<RichFormatter>>
Parse the argument value Read more
§fn parse_(
&self,
cmd: &Command,
arg: Option<&Arg>,
value: OsString,
_source: ValueSource
) -> Result<Self::Value, Error<RichFormatter>>
fn parse_( &self, cmd: &Command, arg: Option<&Arg>, value: OsString, _source: ValueSource ) -> Result<Self::Value, Error<RichFormatter>>
Parse the argument value Read more
§fn possible_values(
&self
) -> Option<Box<dyn Iterator<Item = PossibleValue> + '_, Global>>
fn possible_values( &self ) -> Option<Box<dyn Iterator<Item = PossibleValue> + '_, Global>>
Reflect on enumerated value properties Read more
Auto Trait Implementations§
impl RefUnwindSafe for RevisionArgValueParser
impl Send for RevisionArgValueParser
impl Sync for RevisionArgValueParser
impl Unpin for RevisionArgValueParser
impl UnwindSafe for RevisionArgValueParser
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<I> IntoResettable<ValueParser> for Iwhere
I: Into<ValueParser>,
impl<I> IntoResettable<ValueParser> for Iwhere I: Into<ValueParser>,
§fn into_resettable(self) -> Resettable<ValueParser>
fn into_resettable(self) -> Resettable<ValueParser>
Convert to the intended resettable type