Struct pepper::theme::Theme[][src]

pub struct Theme {
Show fields pub background: Color, pub active_line_background: Color, pub highlight: Color, pub normal_cursor: Color, pub select_cursor: Color, pub insert_cursor: Color, pub inactive_cursor: Color, pub statusbar_active_background: Color, pub statusbar_inactive_background: Color, pub token_whitespace: Color, pub token_text: Color, pub token_comment: Color, pub token_keyword: Color, pub token_type: Color, pub token_symbol: Color, pub token_string: Color, pub token_literal: Color,
}

Fields

background: Coloractive_line_background: Colorhighlight: Colornormal_cursor: Colorselect_cursor: Colorinsert_cursor: Colorinactive_cursor: Colorstatusbar_active_background: Colorstatusbar_inactive_background: Colortoken_whitespace: Colortoken_text: Colortoken_comment: Colortoken_keyword: Colortoken_type: Colortoken_symbol: Colortoken_string: Colortoken_literal: Color

Implementations

impl Theme[src]

pub fn color_from_name(&mut self, name: &str) -> Option<&mut Color>[src]

Trait Implementations

impl Default for Theme[src]

fn default() -> Self[src]

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

Auto Trait Implementations

impl RefUnwindSafe for Theme

impl Send for Theme

impl Sync for Theme

impl Unpin for Theme

impl UnwindSafe for Theme

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.