Struct term_transcript::svg::Palette
source · [−]pub struct Palette {
pub colors: TermColors,
pub intense_colors: TermColors,
}
Available on crate feature
svg
only.Expand description
Palette of 16 standard terminal colors (8 ordinary colors + 8 intense variations).
Fields
colors: TermColors
Ordinary colors.
intense_colors: TermColors
Intense colors.
Trait Implementations
sourceimpl Default for Palette
impl Default for Palette
Returns the palette specified by NamedPalette::Gjm8
.
sourceimpl<'de> Deserialize<'de> for Palette
impl<'de> Deserialize<'de> for Palette
sourcefn 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
sourceimpl From<NamedPalette> for Palette
impl From<NamedPalette> for Palette
sourcefn from(value: NamedPalette) -> Self
fn from(value: NamedPalette) -> Self
Converts to this type from the input type.
impl Copy for Palette
Auto Trait Implementations
impl RefUnwindSafe for Palette
impl Send for Palette
impl Sync for Palette
impl Unpin for Palette
impl UnwindSafe for Palette
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