Enum proc_easy::EasySubArgument
source · 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>where
V: Parse,
T: Parse,
impl<V, T> EasyPeek for EasySubArgument<V, T>where V: Parse, T: Parse,
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>where
V: Parse,
T: Parse,
impl<V, T> Parse for EasySubArgument<V, T>where V: Parse, T: Parse,
fn parse(stream: ParseStream<'_>) -> Result<Self>
source§impl<V: PartialEq, T: PartialEq> PartialEq<EasySubArgument<V, T>> for EasySubArgument<V, T>
impl<V: PartialEq, T: PartialEq> PartialEq<EasySubArgument<V, T>> for EasySubArgument<V, T>
source§fn eq(&self, other: &EasySubArgument<V, T>) -> bool
fn eq(&self, other: &EasySubArgument<V, T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<V: PartialOrd, T: PartialOrd> PartialOrd<EasySubArgument<V, T>> for EasySubArgument<V, T>
impl<V: PartialOrd, T: PartialOrd> PartialOrd<EasySubArgument<V, T>> for EasySubArgument<V, T>
source§fn partial_cmp(&self, other: &EasySubArgument<V, T>) -> Option<Ordering>
fn partial_cmp(&self, other: &EasySubArgument<V, T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more