pub enum ColorItem {
Transparent,
Color(u8, u8, u8),
}Expand description
色項目。
Variants§
Trait Implementations§
Source§impl FromTableValue for ColorItem
impl FromTableValue for ColorItem
type Err = ColorParseError
fn from_table_value(value: &str) -> Result<Self, Self::Err>
impl Eq for ColorItem
impl StructuralPartialEq for ColorItem
Auto Trait Implementations§
impl Freeze for ColorItem
impl RefUnwindSafe for ColorItem
impl Send for ColorItem
impl Sync for ColorItem
impl Unpin for ColorItem
impl UnwindSafe for ColorItem
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.