pub struct ColorTable {
pub constant_alpha: Option<u8>,
pub colors: Vec<Color>,
}Fields§
§constant_alpha: Option<u8>§colors: Vec<Color>Trait Implementations§
Source§impl Clone for ColorTable
impl Clone for ColorTable
Source§fn clone(&self) -> ColorTable
fn clone(&self) -> ColorTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColorTable
impl Debug for ColorTable
Source§impl Default for ColorTable
impl Default for ColorTable
Source§fn default() -> ColorTable
fn default() -> ColorTable
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ColorTable
impl<'de> Deserialize<'de> for ColorTable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<TableBuilderResult> for ColorTable
Available on crate feature ergonomics only.
impl From<TableBuilderResult> for ColorTable
Available on crate feature
ergonomics only.Source§fn from(table_builder_result: TableBuilderResult) -> Self
fn from(table_builder_result: TableBuilderResult) -> Self
Converts to this type from the input type.
Source§impl Serialize for ColorTable
impl Serialize for ColorTable
Source§impl TryFrom<ColorTable> for SPFColorTable
Available on crate feature ffi only.
impl TryFrom<ColorTable> for SPFColorTable
Available on crate feature
ffi only.Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryInto<ColorTable> for &SPFColorTable
Available on crate feature ffi only.
impl TryInto<ColorTable> for &SPFColorTable
Available on crate feature
ffi only.Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ColorTable
impl RefUnwindSafe for ColorTable
impl Send for ColorTable
impl Sync for ColorTable
impl Unpin for ColorTable
impl UnsafeUnpin for ColorTable
impl UnwindSafe for ColorTable
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