pub struct GeneratedVariant {
pub edits: Vec<TokenEdit>,
pub seeds: BTreeMap<String, Seed>,
pub skipped: Vec<String>,
}Expand description
A pair’s other variant generated from the one edited
(ThemeDraft::generate_counterpart): a proposal, for a preview,
that changes nothing until recorded.
Fields§
§edits: Vec<TokenEdit>The edits making the other variant: each checked against its
base, from its own values. Recorded on it as one change (the
first with ThemeDraft::record, the others with
ThemeDraft::record_joined).
seeds: BTreeMap<String, Seed>The seeds its scales are generated from, for its scheme: what it
records (ThemeDraft::set_seed) in place of its own.
skipped: Vec<String>The tokens, or seeded scales, of the variant edited not carried over: the other base has no such token, or the value does not check there.
Trait Implementations§
Source§impl Clone for GeneratedVariant
impl Clone for GeneratedVariant
Source§fn clone(&self) -> GeneratedVariant
fn clone(&self) -> GeneratedVariant
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 GeneratedVariant
impl Debug for GeneratedVariant
Source§impl Default for GeneratedVariant
impl Default for GeneratedVariant
Source§fn default() -> GeneratedVariant
fn default() -> GeneratedVariant
Returns the “default value” for a type. Read more
Source§impl PartialEq for GeneratedVariant
impl PartialEq for GeneratedVariant
impl StructuralPartialEq for GeneratedVariant
Auto Trait Implementations§
impl Freeze for GeneratedVariant
impl RefUnwindSafe for GeneratedVariant
impl Send for GeneratedVariant
impl Sync for GeneratedVariant
impl Unpin for GeneratedVariant
impl UnsafeUnpin for GeneratedVariant
impl UnwindSafe for GeneratedVariant
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