Enum gll::proc_macro::FlatTokenPat
source · pub enum FlatTokenPat<S: AsRef<str>> {
Delim(char),
Ident(Option<S>),
Punct {
ch: Option<char>,
joint: Option<bool>,
},
Literal,
}
Variants§
Trait Implementations§
source§impl<S: Clone + AsRef<str>> Clone for FlatTokenPat<S>
impl<S: Clone + AsRef<str>> Clone for FlatTokenPat<S>
source§fn clone(&self) -> FlatTokenPat<S>
fn clone(&self) -> FlatTokenPat<S>
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 From<FlatTokenPat<String>> for Pat
impl From<FlatTokenPat<String>> for Pat
source§fn from(pat: FlatTokenPat<String>) -> Self
fn from(pat: FlatTokenPat<String>) -> Self
Converts to this type from the input type.
source§impl<S: Ord + AsRef<str>> Ord for FlatTokenPat<S>
impl<S: Ord + AsRef<str>> Ord for FlatTokenPat<S>
source§fn cmp(&self, other: &FlatTokenPat<S>) -> Ordering
fn cmp(&self, other: &FlatTokenPat<S>) -> 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<S: PartialEq + AsRef<str>> PartialEq<FlatTokenPat<S>> for FlatTokenPat<S>
impl<S: PartialEq + AsRef<str>> PartialEq<FlatTokenPat<S>> for FlatTokenPat<S>
source§fn eq(&self, other: &FlatTokenPat<S>) -> bool
fn eq(&self, other: &FlatTokenPat<S>) -> bool
source§impl<S: PartialOrd + AsRef<str>> PartialOrd<FlatTokenPat<S>> for FlatTokenPat<S>
impl<S: PartialOrd + AsRef<str>> PartialOrd<FlatTokenPat<S>> for FlatTokenPat<S>
source§fn partial_cmp(&self, other: &FlatTokenPat<S>) -> Option<Ordering>
fn partial_cmp(&self, other: &FlatTokenPat<S>) -> 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 moreimpl<S: Copy + AsRef<str>> Copy for FlatTokenPat<S>
impl<S: Eq + AsRef<str>> Eq for FlatTokenPat<S>
impl<S: AsRef<str>> StructuralEq for FlatTokenPat<S>
impl<S: AsRef<str>> StructuralPartialEq for FlatTokenPat<S>
Auto Trait Implementations§
impl<S> RefUnwindSafe for FlatTokenPat<S>where
S: RefUnwindSafe,
impl<S> Send for FlatTokenPat<S>where
S: Send,
impl<S> Sync for FlatTokenPat<S>where
S: Sync,
impl<S> Unpin for FlatTokenPat<S>where
S: Unpin,
impl<S> UnwindSafe for FlatTokenPat<S>where
S: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.