pub struct OptVec<T: Display>(pub Vec<T>);Tuple Fields§
§0: Vec<T>Trait Implementations§
Source§impl<T: Display> From<DisplayVec<T>> for OptVec<T>
impl<T: Display> From<DisplayVec<T>> for OptVec<T>
Source§fn from(v: DisplayVec<T>) -> Self
fn from(v: DisplayVec<T>) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b, Ctx, T: Parse<'a>> Parse2<'b, 'a, Ctx> for OptVec<T>
impl<'a, 'b, Ctx, T: Parse<'a>> Parse2<'b, 'a, Ctx> for OptVec<T>
type I = DisplayVec<T>
fn parse2( i: Init<Ctx, Self::I>, k: &'static str, c: &Ctx, p: &mut ParsedArgs<'b, 'a>, ) -> Result<Self, ArgParseErr<'a>>
fn desc2( i: Init<Ctx, Self::I>, d: &'static str, k: &'static str, c: &Ctx, ) -> [String; 4]
fn default2(c: &Ctx, i: Init<Ctx, Self::I>) -> Self
Auto Trait Implementations§
impl<T> Freeze for OptVec<T>
impl<T> RefUnwindSafe for OptVec<T>where
T: RefUnwindSafe,
impl<T> Send for OptVec<T>where
T: Send,
impl<T> Sync for OptVec<T>where
T: Sync,
impl<T> Unpin for OptVec<T>where
T: Unpin,
impl<T> UnwindSafe for OptVec<T>where
T: UnwindSafe,
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> 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