pub struct U8Literal<S: Span> { /* private fields */ }Available on crate feature
literal-value only.Expand description
u8 suffixed integer literal. This can be converted to and from LiteralValue.
Implementations§
Trait Implementations§
Source§impl<T: TokenTreeExt> IntoTokens<T> for U8Literal<T::Span>
impl<T: TokenTreeExt> IntoTokens<T> for U8Literal<T::Span>
Source§fn into_tokens(self) -> impl Iterator<Item = T>
fn into_tokens(self) -> impl Iterator<Item = T>
Convert this object into an iterator of tokens representing the object.
Source§impl<T: TokenTreeExt> Parse<T> for U8Literal<T::Span>
impl<T: TokenTreeExt> Parse<T> for U8Literal<T::Span>
Source§impl<T: TokenStreamExt> ToTokenStream<T> for U8Literal<T::Span>
impl<T: TokenStreamExt> ToTokenStream<T> for U8Literal<T::Span>
Source§fn extend_token_stream(&self, token_stream: &mut T)
fn extend_token_stream(&self, token_stream: &mut T)
Extend the given
TokenStream with a representation of this object.Source§fn into_token_stream(self) -> Twhere
Self: Sized,
fn into_token_stream(self) -> Twhere
Self: Sized,
Make a new
TokenStream with a representation of this object.Source§fn to_token_stream(&self) -> T
fn to_token_stream(&self) -> T
Make a new
TokenStream with a representation of this object.Auto Trait Implementations§
impl<S> Freeze for U8Literal<S>where
S: Freeze,
impl<S> RefUnwindSafe for U8Literal<S>where
S: RefUnwindSafe,
impl<S> Send for U8Literal<S>where
S: Send,
impl<S> Sync for U8Literal<S>where
S: Sync,
impl<S> Unpin for U8Literal<S>where
S: Unpin,
impl<S> UnwindSafe for U8Literal<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, X> DefaultParser<T> for Xwhere
T: TokenTreeExt,
X: Parse<T>,
impl<T, X> DefaultParser<T> for Xwhere
T: TokenTreeExt,
X: Parse<T>,
Source§impl<T, X> ToTokenBuffer<T> for X
impl<T, X> ToTokenBuffer<T> for X
Source§fn extend_token_buffer(&self, token_buffer: &mut TokenBuffer<T>)
fn extend_token_buffer(&self, token_buffer: &mut TokenBuffer<T>)
Extend the given
TokenBuffer with tokens representing this object.Source§fn to_token_buffer(&self) -> TokenBuffer<T>
fn to_token_buffer(&self) -> TokenBuffer<T>
Make a new
TokenBuffer with tokens representing this object.