Theme

Struct Theme 

Source
pub struct Theme {
Show 31 fields pub warning: Color, pub error: Color, pub workspace: Color, pub name: Color, pub version: Color, pub yanked: Color, pub created_at: Color, pub license: Color, pub is_not_published: Color, pub no_default_features: Color, pub no_features: Color, pub no_optional_deps: Color, pub no_required_deps: Color, pub no_dev_deps: Color, pub no_build_deps: Color, pub has_enabled_features: Color, pub features: Color, pub feature_name: Color, pub feature_implies: Color, pub probably_internal: Color, pub default: Color, pub required_deps: Color, pub optional_deps: Color, pub normal_deps: Color, pub dev_deps: Color, pub build_deps: Color, pub renamed: Color, pub renamed_target: Color, pub target: Color, pub dep_feature: Color, pub tree: Color,
}

Fields§

§warning: Color§error: Color§workspace: Color§name: Color§version: Color§yanked: Color§created_at: Color§license: Color§is_not_published: Color§no_default_features: Color§no_features: Color§no_optional_deps: Color§no_required_deps: Color§no_dev_deps: Color§no_build_deps: Color§has_enabled_features: Color§features: Color§feature_name: Color§feature_implies: Color§probably_internal: Color§default: Color§required_deps: Color§optional_deps: Color§normal_deps: Color§dev_deps: Color§build_deps: Color§renamed: Color§renamed_target: Color§target: Color§dep_feature: Color§tree: Color

Implementations§

Source§

impl Theme

Source

pub const fn basic() -> Self

Get a basic theme

Source

pub const fn colorful() -> Self

Get a colorful theme

Source

pub const fn palette() -> Self

Source

pub const fn none() -> Self

Get a colorless theme

Trait Implementations§

Source§

impl Clone for Theme

Source§

fn clone(&self) -> Theme

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Theme

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Theme

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for Theme

Auto Trait Implementations§

§

impl Freeze for Theme

§

impl RefUnwindSafe for Theme

§

impl Send for Theme

§

impl Sync for Theme

§

impl Unpin for Theme

§

impl UnwindSafe for Theme

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.