pub struct Legend {
pub text: String,
pub size: usize,
pub color: Color,
}Expand description
A struct representing a single legend.
This is also referred to as a label in the official TypeScript kle-serial library as well
as some others. It is named Legend here to follow the more prevalent terminology and to match
KLE’s own UI.
Fields§
§text: StringThe legend’s text.
size: usizeThe legend size (in KLE’s font size unit). KLE clamps this to the range 1..=9.
color: ColorThe legend colour.
Trait Implementations§
impl StructuralPartialEq for Legend
Auto Trait Implementations§
impl Freeze for Legend
impl RefUnwindSafe for Legend
impl Send for Legend
impl Sync for Legend
impl Unpin for Legend
impl UnwindSafe for Legend
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