pub struct ParsedSafeInt {
pub value: SafeInt,
pub span: Span,
}Expand description
Parsed representation of an integer literal.
Useful for inspecting the parsed value and source span.
Fields§
§value: SafeIntParsed integer value.
span: SpanSource span of the parsed literal.
Trait Implementations§
Source§impl Clone for ParsedSafeInt
impl Clone for ParsedSafeInt
Source§fn clone(&self) -> ParsedSafeInt
fn clone(&self) -> ParsedSafeInt
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 ParsedSafeInt
impl Debug for ParsedSafeInt
Source§impl Display for ParsedSafeInt
impl Display for ParsedSafeInt
Source§impl FromStr for ParsedSafeInt
impl FromStr for ParsedSafeInt
Source§impl Hash for ParsedSafeInt
impl Hash for ParsedSafeInt
Source§impl Parsable for ParsedSafeInt
impl Parsable for ParsedSafeInt
Source§fn parse(stream: &mut ParseStream) -> Result<Self>
fn parse(stream: &mut ParseStream) -> Result<Self>
Attempts to parse the specified string into a value of type
T.Source§fn parse_value(value: Self, stream: &mut ParseStream) -> Result<Self, Error>
fn parse_value(value: Self, stream: &mut ParseStream) -> Result<Self, Error>
Attempts to parse a specific value of type
T from the ParseStream.Source§impl PartialEq for ParsedSafeInt
impl PartialEq for ParsedSafeInt
Source§impl Spanned for ParsedSafeInt
impl Spanned for ParsedSafeInt
impl Eq for ParsedSafeInt
impl StructuralPartialEq for ParsedSafeInt
Auto Trait Implementations§
impl Freeze for ParsedSafeInt
impl RefUnwindSafe for ParsedSafeInt
impl !Send for ParsedSafeInt
impl !Sync for ParsedSafeInt
impl Unpin for ParsedSafeInt
impl UnwindSafe for ParsedSafeInt
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Peekable for Twhere
T: Parsable,
impl<T> Peekable for Twhere
T: Parsable,
Source§fn peek(stream: &ParseStream) -> bool
fn peek(stream: &ParseStream) -> bool
Returns a boolean indicating whether the
ParseStream can parse the specified type
at the current parsing position.Source§fn peek_value(value: T, stream: &ParseStream) -> bool
fn peek_value(value: T, stream: &ParseStream) -> bool
Returns a boolean indicating whether the
ParseStream can parse the specified value
at the current parsing position.