pub enum EasySubArgument<V, T = V> {
Value(V),
Tuple(T),
}
Expand description
Either a value preceded with =
or parenthesized value.
Variants§
Trait Implementations§
Source§impl<V: Clone, T: Clone> Clone for EasySubArgument<V, T>
impl<V: Clone, T: Clone> Clone for EasySubArgument<V, T>
Source§fn clone(&self) -> EasySubArgument<V, T>
fn clone(&self) -> EasySubArgument<V, T>
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<V, T> EasyPeek for EasySubArgument<V, T>
impl<V, T> EasyPeek for EasySubArgument<V, T>
Source§fn peek(lookahead1: &Lookahead1<'_>) -> bool
fn peek(lookahead1: &Lookahead1<'_>) -> bool
Peek head token before parsing.
Source§fn peek_stream(stream: ParseStream<'_>) -> bool
fn peek_stream(stream: ParseStream<'_>) -> bool
Peek head token before parsing.
Source§impl<V: Ord, T: Ord> Ord for EasySubArgument<V, T>
impl<V: Ord, T: Ord> Ord for EasySubArgument<V, T>
Source§fn cmp(&self, other: &EasySubArgument<V, T>) -> Ordering
fn cmp(&self, other: &EasySubArgument<V, T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<V, T> Parse for EasySubArgument<V, T>
impl<V, T> Parse for EasySubArgument<V, T>
fn parse(stream: ParseStream<'_>) -> Result<Self>
Source§impl<V: PartialOrd, T: PartialOrd> PartialOrd for EasySubArgument<V, T>
impl<V: PartialOrd, T: PartialOrd> PartialOrd for EasySubArgument<V, T>
impl<V: Copy, T: Copy> Copy for EasySubArgument<V, T>
impl<V: Eq, T: Eq> Eq for EasySubArgument<V, T>
impl<V, T> StructuralPartialEq for EasySubArgument<V, T>
Auto Trait Implementations§
impl<V, T> Freeze for EasySubArgument<V, T>
impl<V, T> RefUnwindSafe for EasySubArgument<V, T>where
V: RefUnwindSafe,
T: RefUnwindSafe,
impl<V, T> Send for EasySubArgument<V, T>
impl<V, T> Sync for EasySubArgument<V, T>
impl<V, T> Unpin for EasySubArgument<V, T>
impl<V, T> UnwindSafe for EasySubArgument<V, T>where
V: UnwindSafe,
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