Enum proc_easy::EasySubArgument
source · [−]pub enum EasySubArgument<V, T> {
Value(V),
Tuple(T),
}
Expand description
Either value preceded by =
or tuple sub-fields.
Variants
Value(V)
Simple value
Tuple(T)
Tuple sub-fields
Trait Implementations
sourceimpl<V: Clone, T: Clone> Clone for EasySubArgument<V, T>
impl<V: Clone, T: Clone> Clone for EasySubArgument<V, T>
sourcefn clone(&self) -> EasySubArgument<V, T>
fn clone(&self) -> EasySubArgument<V, T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<V: Debug, T: Debug> Debug for EasySubArgument<V, T>
impl<V: Debug, T: Debug> Debug for EasySubArgument<V, T>
sourceimpl<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,
sourcefn peek(lookahead1: &Lookahead1<'_>) -> bool
fn peek(lookahead1: &Lookahead1<'_>) -> bool
Peek head token before parsing.
sourcefn peek_stream(stream: ParseStream<'_>) -> bool
fn peek_stream(stream: ParseStream<'_>) -> bool
Peek head token before parsing.
sourceimpl<V: Hash, T: Hash> Hash for EasySubArgument<V, T>
impl<V: Hash, T: Hash> Hash for EasySubArgument<V, T>
sourceimpl<V: Ord, T: Ord> Ord for EasySubArgument<V, T>
impl<V: Ord, T: Ord> Ord for EasySubArgument<V, T>
sourceimpl<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>
sourceimpl<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>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &EasySubArgument<V, T>) -> bool
fn ne(&self, other: &EasySubArgument<V, T>) -> bool
This method tests for !=
.
sourceimpl<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>
sourcefn partial_cmp(&self, other: &EasySubArgument<V, T>) -> Option<Ordering>
fn partial_cmp(&self, other: &EasySubArgument<V, T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl<V: Copy, T: Copy> Copy for EasySubArgument<V, T>
impl<V: Eq, T: Eq> Eq for EasySubArgument<V, T>
impl<V, T> StructuralEq for EasySubArgument<V, T>
impl<V, T> StructuralPartialEq for EasySubArgument<V, T>
Auto Trait Implementations
impl<V, T> RefUnwindSafe for EasySubArgument<V, T> where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, T> Send for EasySubArgument<V, T> where
T: Send,
V: Send,
impl<V, T> Sync for EasySubArgument<V, T> where
T: Sync,
V: Sync,
impl<V, T> Unpin for EasySubArgument<V, T> where
T: Unpin,
V: Unpin,
impl<V, T> UnwindSafe for EasySubArgument<V, T> where
T: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more