pub struct KitVariant {
pub name: String,
pub label: Option<String>,
pub theme: TokenFile,
}Expand description
A kit’s other variant (KitData::counterpart): the manifest’s
counterpart, with the kit’s other token files merged in.
Fields§
§name: StringIts theme’s name.
label: Option<String>A name for people, from the manifest.
theme: TokenFileIts tokens: a theme named KitVariant::name.
Implementations§
Source§impl KitVariant
impl KitVariant
Sourcepub fn display_name(&self) -> &str
pub fn display_name(&self) -> &str
The variant’s name for people: its label, else its name.
Trait Implementations§
Source§impl Clone for KitVariant
impl Clone for KitVariant
Source§fn clone(&self) -> KitVariant
fn clone(&self) -> KitVariant
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 KitVariant
impl Debug for KitVariant
Source§impl PartialEq for KitVariant
impl PartialEq for KitVariant
impl StructuralPartialEq for KitVariant
Auto Trait Implementations§
impl Freeze for KitVariant
impl RefUnwindSafe for KitVariant
impl Send for KitVariant
impl Sync for KitVariant
impl Unpin for KitVariant
impl UnsafeUnpin for KitVariant
impl UnwindSafe for KitVariant
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