pub struct Color<'a>(pub &'a str);
Expand description
An SVG color.
Tuple Fields§
§0: &'a str
Trait Implementations§
Source§impl<'a> Ord for Color<'a>
impl<'a> Ord for Color<'a>
Source§impl<'a> PartialOrd for Color<'a>
impl<'a> PartialOrd for Color<'a>
Source§impl<'a> Pixel for Color<'a>
impl<'a> Pixel for Color<'a>
Source§type Canvas = Canvas<'a>
type Canvas = Canvas<'a>
The type that stores an intermediate buffer before finalizing to a
concrete image
Source§fn default_color(color: ModuleColor) -> Self
fn default_color(color: ModuleColor) -> Self
Obtains the default pixel color when a module is dark or light.
Source§fn default_unit_size() -> (u32, u32)
fn default_unit_size() -> (u32, u32)
Obtains the default module size. The result must be at least 1×1.
impl<'a> Copy for Color<'a>
impl<'a> Eq for Color<'a>
impl<'a> StructuralPartialEq for Color<'a>
Auto Trait Implementations§
impl<'a> Freeze for Color<'a>
impl<'a> RefUnwindSafe for Color<'a>
impl<'a> Send for Color<'a>
impl<'a> Sync for Color<'a>
impl<'a> Unpin for Color<'a>
impl<'a> UnwindSafe for Color<'a>
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