Struct parsel::ast::CustomIdent
source · [−]pub struct CustomIdent<K> { /* private fields */ }
Expand description
An identifier which allows customizing the keywords of the language, i.e., which words should be accepted and rejected when parsing.
Implementations
sourceimpl<K> CustomIdent<K>
impl<K> CustomIdent<K>
Trait Implementations
sourceimpl<K: Clone> Clone for CustomIdent<K>
impl<K: Clone> Clone for CustomIdent<K>
sourcefn clone(&self) -> CustomIdent<K>
fn clone(&self) -> CustomIdent<K>
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<K> Debug for CustomIdent<K>
impl<K> Debug for CustomIdent<K>
sourceimpl<K> Display for CustomIdent<K>
impl<K> Display for CustomIdent<K>
sourceimpl<K> From<CustomIdent<K>> for Ident
impl<K> From<CustomIdent<K>> for Ident
sourcefn from(ident: CustomIdent<K>) -> Self
fn from(ident: CustomIdent<K>) -> Self
Converts to this type from the input type.
sourceimpl<K> FromStr for CustomIdent<K> where
K: Default + KeywordList,
impl<K> FromStr for CustomIdent<K> where
K: Default + KeywordList,
sourceimpl<K: Hash> Hash for CustomIdent<K>
impl<K: Hash> Hash for CustomIdent<K>
sourceimpl<K: Ord> Ord for CustomIdent<K>
impl<K: Ord> Ord for CustomIdent<K>
sourceimpl<K> Parse for CustomIdent<K> where
K: Default + KeywordList,
impl<K> Parse for CustomIdent<K> where
K: Default + KeywordList,
fn parse(input: ParseStream<'_>) -> Result<Self>
sourceimpl<K: PartialEq> PartialEq<CustomIdent<K>> for CustomIdent<K>
impl<K: PartialEq> PartialEq<CustomIdent<K>> for CustomIdent<K>
sourcefn eq(&self, other: &CustomIdent<K>) -> bool
fn eq(&self, other: &CustomIdent<K>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CustomIdent<K>) -> bool
fn ne(&self, other: &CustomIdent<K>) -> bool
This method tests for !=
.
sourceimpl<K, T> PartialEq<T> for CustomIdent<K> where
T: AsRef<str>,
impl<K, T> PartialEq<T> for CustomIdent<K> where
T: AsRef<str>,
sourceimpl<K: PartialOrd> PartialOrd<CustomIdent<K>> for CustomIdent<K>
impl<K: PartialOrd> PartialOrd<CustomIdent<K>> for CustomIdent<K>
sourcefn partial_cmp(&self, other: &CustomIdent<K>) -> Option<Ordering>
fn partial_cmp(&self, other: &CustomIdent<K>) -> 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
sourceimpl<K> ToTokens for CustomIdent<K>
impl<K> ToTokens for CustomIdent<K>
sourcefn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Write self
to the given TokenStream
. Read more
sourcefn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Convert self
directly into a TokenStream
object. Read more
sourcefn into_token_stream(self) -> TokenStream
fn into_token_stream(self) -> TokenStream
Convert self
directly into a TokenStream
object. Read more
sourceimpl<K> TryFrom<Ident> for CustomIdent<K> where
K: Default + KeywordList,
impl<K> TryFrom<Ident> for CustomIdent<K> where
K: Default + KeywordList,
impl<K: Eq> Eq for CustomIdent<K>
impl<K> StructuralEq for CustomIdent<K>
impl<K> StructuralPartialEq for CustomIdent<K>
Auto Trait Implementations
impl<K> RefUnwindSafe for CustomIdent<K> where
K: RefUnwindSafe,
impl<K> !Send for CustomIdent<K>
impl<K> !Sync for CustomIdent<K>
impl<K> Unpin for CustomIdent<K> where
K: Unpin,
impl<K> UnwindSafe for CustomIdent<K> where
K: 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> Spanned for T where
T: Spanned + ?Sized,
impl<T> Spanned for T where
T: Spanned + ?Sized,
sourcefn span(&self) -> Span
fn span(&self) -> Span
Returns a Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more