pub enum Kind {
Solid,
Sketch,
Glyph,
Line,
}Expand description
What an icon depicts, which decides how it is drawn and whether it can be tinted.
Variants§
Solid
Isometric CAD geometry with shaded faces: features, mates, analysis tools.
Sketch
Flat sketch geometry, with the points the user picks in the accent colour.
Glyph
Small markers such as sketch constraints, legible at 10-16 px.
Line
Interface icons such as undo, folder and search.
Implementations§
Source§impl Kind
impl Kind
Sourcepub fn is_tintable(self) -> bool
pub fn is_tintable(self) -> bool
Glyph and line icons are drawn in ink with at most a small accent detail, so they can be
tinted freely with Icon::tinted.
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more