pub struct PatternMap { /* private fields */ }Expand description
Implementations§
Source§impl PatternMap
impl PatternMap
Sourcepub fn new<'a>(
palette: impl IntoIterator<Item = (&'a str, Rgb)>,
map: &PatternMapDef,
) -> Self
pub fn new<'a>( palette: impl IntoIterator<Item = (&'a str, Rgb)>, map: &PatternMapDef, ) -> Self
The map of the roles of palette (name and colour, as
Palette::iter gives them) by
pattern map map. A role map lacks has no patterns, so its
colour is drawn as a colour of no role. When roles share a colour,
the first that palette gives with patterns is its role (the
frame holds colours, so it can’t tell them apart:
shuyi_assets::onebit::check says so).
Trait Implementations§
Source§impl Clone for PatternMap
impl Clone for PatternMap
Source§fn clone(&self) -> PatternMap
fn clone(&self) -> PatternMap
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 PatternMap
impl Debug for PatternMap
Source§impl Default for PatternMap
impl Default for PatternMap
Source§fn default() -> PatternMap
fn default() -> PatternMap
Returns the “default value” for a type. Read more
impl Eq for PatternMap
Source§impl PartialEq for PatternMap
impl PartialEq for PatternMap
Source§impl Shades for PatternMap
impl Shades for PatternMap
impl StructuralPartialEq for PatternMap
Auto Trait Implementations§
impl Freeze for PatternMap
impl RefUnwindSafe for PatternMap
impl Send for PatternMap
impl Sync for PatternMap
impl Unpin for PatternMap
impl UnsafeUnpin for PatternMap
impl UnwindSafe for PatternMap
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