pub struct RGBColor(pub u8, pub u8, pub u8);Expand description
sRGB 颜色(三字节 0-255)。
对应 OOXML 中的 <a:srgbClr val="RRGGBB"/> 元素。
注意:本类型仅表达“绝对 RGB 颜色“,不含透明度(透明度由
<a:alpha val="..."/> 子元素承载,见 crate::oxml::color)。
Tuple Fields§
§0: u8红色分量(0-255)。
1: u8绿色分量(0-255)。
2: u8蓝色分量(0-255)。
Implementations§
Trait Implementations§
impl Copy for RGBColor
impl Eq for RGBColor
impl StructuralPartialEq for RGBColor
Auto Trait Implementations§
impl Freeze for RGBColor
impl RefUnwindSafe for RGBColor
impl Send for RGBColor
impl Sync for RGBColor
impl Unpin for RGBColor
impl UnsafeUnpin for RGBColor
impl UnwindSafe for RGBColor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.