pub enum TokenValue {
Number(i64),
Bool(bool),
CodeValue(CodeTokenValue),
String(SharedStr),
}Expand description
A single variable from the Config
Variants§
Number(i64)
A numeric value
Bool(bool)
A boolean value
CodeValue(CodeTokenValue)
A code token value
String(SharedStr)
A string value
Trait Implementations§
Source§impl Clone for TokenValue
impl Clone for TokenValue
Source§fn clone(&self) -> TokenValue
fn clone(&self) -> TokenValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TokenValue
impl Debug for TokenValue
Source§impl Display for TokenValue
impl Display for TokenValue
Source§impl PartialEq for TokenValue
impl PartialEq for TokenValue
Source§fn eq(&self, other: &TokenValue) -> bool
fn eq(&self, other: &TokenValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ToTokens for TokenValue
impl ToTokens for TokenValue
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl StructuralPartialEq for TokenValue
Auto Trait Implementations§
impl Freeze for TokenValue
impl RefUnwindSafe for TokenValue
impl !Send for TokenValue
impl !Sync for TokenValue
impl Unpin for TokenValue
impl UnsafeUnpin for TokenValue
impl UnwindSafe for TokenValue
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.