pub struct DesignTokens {
pub entries: BTreeMap<String, TokenNode>,
}Expand description
A parsed DTCG design token file. Groups and tokens are interleaved
in the same tree — a node with $value is a token, without is a group.
Fields§
§entries: BTreeMap<String, TokenNode>Implementations§
Trait Implementations§
Source§impl Clone for DesignTokens
impl Clone for DesignTokens
Source§fn clone(&self) -> DesignTokens
fn clone(&self) -> DesignTokens
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 DesignTokens
impl Debug for DesignTokens
Source§impl Default for DesignTokens
impl Default for DesignTokens
Source§fn default() -> DesignTokens
fn default() -> DesignTokens
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DesignTokens
impl RefUnwindSafe for DesignTokens
impl Send for DesignTokens
impl Sync for DesignTokens
impl Unpin for DesignTokens
impl UnsafeUnpin for DesignTokens
impl UnwindSafe for DesignTokens
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