Struct proclet::I128Literal
source · pub struct I128Literal<S: Span> { /* private fields */ }
Available on crate feature
literal-value
only.Expand description
i128
suffixed integer literal. This can be converted to and from LiteralValue
.
Implementations§
source§impl<S: Span> I128Literal<S>
impl<S: Span> I128Literal<S>
Trait Implementations§
source§impl<S: Clone + Span> Clone for I128Literal<S>
impl<S: Clone + Span> Clone for I128Literal<S>
source§fn clone(&self) -> I128Literal<S>
fn clone(&self) -> I128Literal<S>
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<S: SpanExt> From<I128Literal<S>> for LiteralValue<S>
impl<S: SpanExt> From<I128Literal<S>> for LiteralValue<S>
source§fn from(value: I128Literal<S>) -> Self
fn from(value: I128Literal<S>) -> Self
Converts to this type from the input type.
source§impl From<I128Literal<Span>> for Literal
Available on crate feature proc-macro
only.
impl From<I128Literal<Span>> for Literal
Available on crate feature
proc-macro
only.source§fn from(value: I128Literal<Span>) -> Self
fn from(value: I128Literal<Span>) -> Self
Converts to this type from the input type.
source§impl From<I128Literal<Span>> for Literal
Available on crate feature proc-macro2
only.
impl From<I128Literal<Span>> for Literal
Available on crate feature
proc-macro2
only.source§fn from(value: I128Literal<Span>) -> Self
fn from(value: I128Literal<Span>) -> Self
Converts to this type from the input type.
source§impl<T: TokenTreeExt> IntoTokens<T> for I128Literal<T::Span>
impl<T: TokenTreeExt> IntoTokens<T> for I128Literal<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 I128Literal<T::Span>
impl<T: TokenTreeExt> Parse<T> for I128Literal<T::Span>
source§impl<T: TokenStreamExt> ToTokenStream<T> for I128Literal<T::Span>
impl<T: TokenStreamExt> ToTokenStream<T> for I128Literal<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.source§impl<S: SpanExt> TryFrom<LiteralValue<S>> for I128Literal<S>
impl<S: SpanExt> TryFrom<LiteralValue<S>> for I128Literal<S>
Auto Trait Implementations§
impl<S> Freeze for I128Literal<S>where
S: Freeze,
impl<S> RefUnwindSafe for I128Literal<S>where
S: RefUnwindSafe,
impl<S> Send for I128Literal<S>where
S: Send,
impl<S> Sync for I128Literal<S>where
S: Sync,
impl<S> Unpin for I128Literal<S>where
S: Unpin,
impl<S> UnwindSafe for I128Literal<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.