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