pub struct PatVerbatim {
pub tts: TokenStream,
}Expand description
Tokens in pattern position not interpreted by Syn.
This type is available if Syn is built with the "full" feature.
Fields§
§tts: TokenStreamTrait Implementations§
Source§impl Clone for PatVerbatim
impl Clone for PatVerbatim
Source§fn clone(&self) -> PatVerbatim
fn clone(&self) -> PatVerbatim
Returns a duplicate 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 Debug for PatVerbatim
impl Debug for PatVerbatim
Source§impl From<PatVerbatim> for Pat
impl From<PatVerbatim> for Pat
Source§fn from(e: PatVerbatim) -> Pat
fn from(e: PatVerbatim) -> Pat
Converts to this type from the input type.
Source§impl Hash for PatVerbatim
Available on crate features full and extra-traits only.
impl Hash for PatVerbatim
Available on crate features
full and extra-traits only.Source§impl PartialEq for PatVerbatim
Available on crate features full and extra-traits only.
impl PartialEq for PatVerbatim
Available on crate features
full and extra-traits only.Source§impl ToTokens for PatVerbatim
Available on crate feature full only.
impl ToTokens for PatVerbatim
Available on crate feature
full only.Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Eq for PatVerbatim
Available on crate features
full and extra-traits only.Auto Trait Implementations§
impl Freeze for PatVerbatim
impl RefUnwindSafe for PatVerbatim
impl !Send for PatVerbatim
impl !Sync for PatVerbatim
impl Unpin for PatVerbatim
impl UnwindSafe for PatVerbatim
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Spanned for Twhere
T: ToTokens,
impl<T> Spanned for Twhere
T: ToTokens,
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.