pub struct Question<S: MaybeSpan>(pub S);Tuple Fields§
§0: STrait Implementations§
Source§impl<S: MaybeSpan> IntoTokenTree for PUNCT<S>
impl<S: MaybeSpan> IntoTokenTree for PUNCT<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<S: MaybeSpan> IntoTokens for PUNCT<S>
impl<S: MaybeSpan> IntoTokens for PUNCT<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<SO: MaybeSpan> RefWithSpan for PUNCT<SO>
impl<SO: MaybeSpan> RefWithSpan for PUNCT<SO>
type RefWithDefaultSpan<'ref_with_span, S: Span> = <Question<SO> as WithSpan>::WithDefaultSpan<S> where Self: 'ref_with_span
type RefWithReplacedSpan<'ref_with_span, S: Span> = <Question<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<S: MaybeSpan> ToTokenTree for PUNCT<S>
impl<S: MaybeSpan> ToTokenTree for PUNCT<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<S: MaybeSpan> ToTokens for PUNCT<S>
impl<S: MaybeSpan> ToTokens for PUNCT<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<SO: MaybeSpan> WithSpan for PUNCT<SO>
impl<SO: MaybeSpan> WithSpan for PUNCT<SO>
type WithDefaultSpan<S: Span> = Question<<SO as MaybeSpan>::WithDefaultSpan<S>>
type WithReplacedSpan<S: Span> = Question<<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<S: Copy + MaybeSpan> Copy for Question<S>
Auto Trait Implementations§
impl<S> Freeze for Question<S>where
S: Freeze,
impl<S> RefUnwindSafe for Question<S>where
S: RefUnwindSafe,
impl<S> Send for Question<S>where
S: Send,
impl<S> Sync for Question<S>where
S: Sync,
impl<S> Unpin for Question<S>where
S: Unpin,
impl<S> UnsafeUnpin for Question<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Question<S>where
S: UnwindSafe,
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