pub struct ConstIdent<T: HasConstIdent + ?Sized, S: MaybeSpan = NoSpan>(/* private fields */);Implementations§
Source§impl<T: HasConstIdent + ?Sized> ConstIdent<T>
impl<T: HasConstIdent + ?Sized> ConstIdent<T>
Source§impl<T: HasConstIdent + ?Sized, S: MaybeSpan> ConstIdent<T, S>
impl<T: HasConstIdent + ?Sized, S: MaybeSpan> ConstIdent<T, S>
Source§impl ConstIdent<Underscore>
impl ConstIdent<Underscore>
pub const UNDERSCORE: Self
Trait Implementations§
Source§impl<T: HasConstIdent + ?Sized, S: MaybeSpan> Clone for ConstIdent<T, S>
impl<T: HasConstIdent + ?Sized, S: MaybeSpan> Clone for ConstIdent<T, S>
Source§impl<T: HasConstIdent + ?Sized, S: MaybeSpan + Debug> Debug for ConstIdent<T, S>
impl<T: HasConstIdent + ?Sized, S: MaybeSpan + Debug> Debug for ConstIdent<T, S>
Source§impl<T: HasConstIdent + ?Sized> Default for ConstIdent<T>
impl<T: HasConstIdent + ?Sized> Default for ConstIdent<T>
Source§impl<T: HasConstIdent + ?Sized, S: MaybeSpan> IntoTokenTree for ConstIdent<T, S>
impl<T: HasConstIdent + ?Sized, S: MaybeSpan> IntoTokenTree for ConstIdent<T, S>
Source§fn into_token_tree(self) -> TokenTree
fn into_token_tree(self) -> TokenTree
Available on crate feature
proc-macro only.Source§fn into_token_tree2(self) -> TokenTree
fn into_token_tree2(self) -> TokenTree
Available on crate feature
proc-macro2 only.Source§impl<T: HasConstIdent + ?Sized, S: MaybeSpan> IntoTokens for ConstIdent<T, S>
impl<T: HasConstIdent + ?Sized, S: MaybeSpan> IntoTokens for ConstIdent<T, S>
Source§fn into_tokens(self, tokens: &mut TokenStream)
fn into_tokens(self, tokens: &mut TokenStream)
Available on crate feature
proc-macro only.Source§fn into_token_stream(self) -> TokenStream
fn into_token_stream(self) -> TokenStream
Available on crate feature
proc-macro only.Source§fn into_tokens2(self, tokens: &mut TokenStream)
fn into_tokens2(self, tokens: &mut TokenStream)
Available on crate feature
proc-macro2 only.Source§fn into_token_stream2(self) -> TokenStream
fn into_token_stream2(self) -> TokenStream
Available on crate feature
proc-macro2 only.Source§impl<T: HasConstIdent + ?Sized, SO: MaybeSpan> RefWithSpan for ConstIdent<T, SO>
impl<T: HasConstIdent + ?Sized, SO: MaybeSpan> RefWithSpan for ConstIdent<T, SO>
type RefWithDefaultSpan<'ref_with_span, S: Span> = <ConstIdent<T, SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span
type RefWithReplacedSpan<'ref_with_span, S: Span> = <ConstIdent<T, SO> as WithSpan>::WithReplacedSpan<S> where Self: 'ref_with_span
fn ref_with_default_span<S: Span>( &self, span: S, ) -> Self::RefWithDefaultSpan<'_, S>
fn ref_with_replaced_span<S: Span>( &self, span: S, ) -> Self::RefWithReplacedSpan<'_, S>
Source§impl<T: HasConstIdent + ?Sized, S: MaybeSpan> ToTokenTree for ConstIdent<T, S>
impl<T: HasConstIdent + ?Sized, S: MaybeSpan> ToTokenTree for ConstIdent<T, S>
Source§fn to_token_tree(&self) -> TokenTree
fn to_token_tree(&self) -> TokenTree
Available on crate feature
proc-macro only.Source§fn to_token_tree2(&self) -> TokenTree
fn to_token_tree2(&self) -> TokenTree
Available on crate feature
proc-macro2 only.Source§impl<T: HasConstIdent + ?Sized, S: MaybeSpan> ToTokens for ConstIdent<T, S>
impl<T: HasConstIdent + ?Sized, S: MaybeSpan> ToTokens for ConstIdent<T, S>
Source§fn to_tokens(&self, ts: &mut TokenStream)
fn to_tokens(&self, ts: &mut TokenStream)
Available on crate feature
proc-macro only.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Available on crate feature
proc-macro only.Source§fn to_tokens2(&self, ts: &mut TokenStream)
fn to_tokens2(&self, ts: &mut TokenStream)
Available on crate feature
proc-macro2 only.Source§fn to_token_stream2(&self) -> TokenStream
fn to_token_stream2(&self) -> TokenStream
Available on crate feature
proc-macro2 only.Source§impl<T: HasConstIdent + ?Sized, SO: MaybeSpan> WithSpan for ConstIdent<T, SO>
impl<T: HasConstIdent + ?Sized, SO: MaybeSpan> WithSpan for ConstIdent<T, SO>
type WithDefaultSpan<S: Span> = ConstIdent<T, <SO as MaybeSpan>::WithDefaultSpan<S>>
type WithReplacedSpan<S: Span> = ConstIdent<T, <SO as MaybeSpan>::WithReplacedSpan<S>>
fn with_default_span<S: Span>(self, span: S) -> Self::WithDefaultSpan<S>
fn with_replaced_span<S: Span>(self, span: S) -> Self::WithReplacedSpan<S>
impl<T: HasConstIdent + ?Sized, S: MaybeSpan> Copy for ConstIdent<T, S>
Auto Trait Implementations§
impl<T, S> Freeze for ConstIdent<T, S>
impl<T, S> RefUnwindSafe for ConstIdent<T, S>
impl<T, S> Send for ConstIdent<T, S>
impl<T, S> Sync for ConstIdent<T, S>
impl<T, S> Unpin for ConstIdent<T, S>
impl<T, S> UnsafeUnpin for ConstIdent<T, S>where
S: UnsafeUnpin,
T: ?Sized,
impl<T, S> UnwindSafe for ConstIdent<T, S>
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