pub struct DefinitionName(Ident);Tuple Fields§
§0: IdentImplementations§
Source§impl DefinitionName
impl DefinitionName
fn lookup_eval_bool<'c>(&self, ctx: GeneralContext<'c>) -> Result<bool>
Source§impl DefinitionName
impl DefinitionName
fn lookup_expand<'c, O: ExpansionOutput>( &self, ctx: GeneralContext<'c>, out: &mut O, ) -> Result<()>
Trait Implementations§
Source§impl Debug for DefinitionName
impl Debug for DefinitionName
Source§impl Display for DefinitionName
impl Display for DefinitionName
Source§impl Ord for DefinitionName
impl Ord for DefinitionName
Source§fn cmp(&self, other: &DefinitionName) -> Ordering
fn cmp(&self, other: &DefinitionName) -> 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 Parse for DefinitionName
impl Parse for DefinitionName
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl PartialEq for DefinitionName
impl PartialEq for DefinitionName
Source§impl PartialOrd for DefinitionName
impl PartialOrd for DefinitionName
Source§impl ToTokens for DefinitionName
impl ToTokens for DefinitionName
Source§fn to_tokens(&self, out: &mut TokenStream)
fn to_tokens(&self, out: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Source§impl TryFrom<Ident> for DefinitionName
impl TryFrom<Ident> for DefinitionName
Source§type Error = InvalidDefinitionName
type Error = InvalidDefinitionName
The type returned in the event of a conversion error.
impl Eq for DefinitionName
impl StructuralPartialEq for DefinitionName
Auto Trait Implementations§
impl Freeze for DefinitionName
impl RefUnwindSafe for DefinitionName
impl !Send for DefinitionName
impl !Sync for DefinitionName
impl Unpin for DefinitionName
impl UnwindSafe for DefinitionName
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
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Spanned for T
impl<T> Spanned for T
Source§fn 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.