pub enum TokenValue {
Literal(TokenLiteral),
Reference {
token_id: String,
},
}Expand description
The value of a token — either an inline literal or an alias to another token.
Variants§
Literal(TokenLiteral)
A literal token value.
Reference
An alias to another token, e.g. (token)"color.text.primary".
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 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 ==.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