pub struct LitVerbatim {
pub token: Literal,
pub span: Span,
}
Expand description
A raw token literal not interpreted by Syn, possibly because it represents an integer larger than 64 bits.
This type is available if Syn is built with the "derive"
or
"full"
feature.
Fields§
§token: Literal
§span: Span
Trait Implementations§
Source§impl Clone for LitVerbatim
impl Clone for LitVerbatim
Source§fn clone(&self) -> LitVerbatim
fn clone(&self) -> LitVerbatim
Returns a copy 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 LitVerbatim
impl Debug for LitVerbatim
Source§impl From<LitVerbatim> for Lit
impl From<LitVerbatim> for Lit
Source§fn from(e: LitVerbatim) -> Lit
fn from(e: LitVerbatim) -> Lit
Converts to this type from the input type.
Source§impl Hash for LitVerbatim
impl Hash for LitVerbatim
Source§impl PartialEq for LitVerbatim
impl PartialEq for LitVerbatim
Source§impl ToTokens for LitVerbatim
impl ToTokens for LitVerbatim
impl Eq for LitVerbatim
Auto Trait Implementations§
impl Freeze for LitVerbatim
impl RefUnwindSafe for LitVerbatim
impl Send for LitVerbatim
impl Sync for LitVerbatim
impl Unpin for LitVerbatim
impl UnwindSafe for LitVerbatim
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.