pub struct SingleQuote {
pub span: Span,
}
Expand description
'
Fields§
§span: Span
The span covered by this token.
Implementations§
Source§impl SingleQuote
impl SingleQuote
Sourcepub const fn new(span: Span) -> SingleQuote
pub const fn new(span: Span) -> SingleQuote
Constructs a new SingleQuote
with the given span.
Trait Implementations§
Source§impl Clone for SingleQuote
impl Clone for SingleQuote
Source§fn clone(&self) -> SingleQuote
fn clone(&self) -> SingleQuote
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 SingleQuote
impl Debug for SingleQuote
Source§impl Display for SingleQuote
impl Display for SingleQuote
Source§impl Hash for SingleQuote
impl Hash for SingleQuote
Source§impl Ord for SingleQuote
impl Ord for SingleQuote
Source§impl Parse for SingleQuote
impl Parse for SingleQuote
Source§impl PartialEq for SingleQuote
impl PartialEq for SingleQuote
Source§impl PartialOrd for SingleQuote
impl PartialOrd for SingleQuote
Source§impl ToTokens for SingleQuote
impl ToTokens for SingleQuote
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Append
self
to the given TokenStream
.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Convert
self
directly into a TokenStream
.Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Convert
self
directly into a TokenStream
.Source§impl Token for SingleQuote
impl Token for SingleQuote
impl Eq for SingleQuote
impl Punct for SingleQuote
Auto Trait Implementations§
impl Freeze for SingleQuote
impl RefUnwindSafe for SingleQuote
impl Send for SingleQuote
impl Sync for SingleQuote
impl Unpin for SingleQuote
impl UnwindSafe for SingleQuote
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