pub struct PositionalParams {
pub values: Vec<String>,
pub last_modified_location: Option<Location>,
}Expand description
Positional parameters
Fields§
§values: Vec<String>Values of positional parameters
last_modified_location: Option<Location>Location of the last modification of positional parameters
Implementations§
Source§impl PositionalParams
impl PositionalParams
Sourcepub fn from_fields<I>(fields: I) -> Selfwhere
I: IntoIterator<Item = Field>,
pub fn from_fields<I>(fields: I) -> Selfwhere
I: IntoIterator<Item = Field>,
Creates a PositionalParams instance from fields.
The given iterator should be a non-empty sequence of fields. The first
field is the name of the command whose origin is used as the
last_modified_location. The rest of the fields are the values of
positional parameters.
Trait Implementations§
Source§impl Clone for PositionalParams
impl Clone for PositionalParams
Source§fn clone(&self) -> PositionalParams
fn clone(&self) -> PositionalParams
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 Debug for PositionalParams
impl Debug for PositionalParams
Source§impl Default for PositionalParams
impl Default for PositionalParams
Source§fn default() -> PositionalParams
fn default() -> PositionalParams
Returns the “default value” for a type. Read more
Source§impl PartialEq for PositionalParams
impl PartialEq for PositionalParams
impl Eq for PositionalParams
impl StructuralPartialEq for PositionalParams
Auto Trait Implementations§
impl Freeze for PositionalParams
impl !RefUnwindSafe for PositionalParams
impl !Send for PositionalParams
impl !Sync for PositionalParams
impl Unpin for PositionalParams
impl !UnwindSafe for PositionalParams
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more