pub enum ColorRole {
Foreground,
Background,
Theme,
Unknown,
}Expand description
颜色在文档中的角色(仅 hint,不参与序列化)。
python-pptx 中用 color.type 反映“是前景 / 背景 / 文本“等角色;
本枚举用于 ColorFormat::role 的返回值。
Variants§
Trait Implementations§
impl Copy for ColorRole
impl Eq for ColorRole
impl StructuralPartialEq for ColorRole
Auto Trait Implementations§
impl Freeze for ColorRole
impl RefUnwindSafe for ColorRole
impl Send for ColorRole
impl Sync for ColorRole
impl Unpin for ColorRole
impl UnsafeUnpin for ColorRole
impl UnwindSafe for ColorRole
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.