pub struct I8Literal<S: Span> { /* private fields */ }
Available on crate feature
literal-value
only.Expand description
i8
suffixed integer literal. This can be converted to and from LiteralValue
.
Implementations§
Trait Implementations§
source§impl<T: TokenTreeExt> IntoTokens<T> for I8Literal<T::Span>
impl<T: TokenTreeExt> IntoTokens<T> for I8Literal<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 I8Literal<T::Span>
impl<T: TokenTreeExt> Parse<T> for I8Literal<T::Span>
source§impl<T: TokenStreamExt> ToTokenStream<T> for I8Literal<T::Span>
impl<T: TokenStreamExt> ToTokenStream<T> for I8Literal<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 I8Literal<S>where
S: Freeze,
impl<S> RefUnwindSafe for I8Literal<S>where
S: RefUnwindSafe,
impl<S> Send for I8Literal<S>where
S: Send,
impl<S> Sync for I8Literal<S>where
S: Sync,
impl<S> Unpin for I8Literal<S>where
S: Unpin,
impl<S> UnwindSafe for I8Literal<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, 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.