Struct term_transcript::svg::RgbColor
source · [−]Available on crate feature
svg
only.Expand description
RGB color with 8-bit channels.
A color can be parsed from a hex string like #fed
or #de382b
.
Tuple Fields
0: u8
1: u8
2: u8
Trait Implementations
sourceimpl<'de> Deserialize<'de> for RgbColor
impl<'de> Deserialize<'de> for RgbColor
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Copy for RgbColor
impl Eq for RgbColor
impl StructuralEq for RgbColor
impl StructuralPartialEq for RgbColor
Auto Trait Implementations
impl RefUnwindSafe for RgbColor
impl Send for RgbColor
impl Sync for RgbColor
impl Unpin for RgbColor
impl UnwindSafe for RgbColor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more