Skip to main content

EditorThemePartialExt

Trait EditorThemePartialExt 

Source
pub trait EditorThemePartialExt {
    // Required methods
    fn background(self, background: impl Into<Color>) -> Self;
    fn gutter_selected(self, gutter_selected: impl Into<Color>) -> Self;
    fn gutter_unselected(self, gutter_unselected: impl Into<Color>) -> Self;
    fn line_selected_background(
        self,
        line_selected_background: impl Into<Color>,
    ) -> Self;
    fn cursor(self, cursor: impl Into<Color>) -> Self;
    fn highlight(self, highlight: impl Into<Color>) -> Self;
    fn text(self, text: impl Into<Color>) -> Self;
    fn whitespace(self, whitespace: impl Into<Color>) -> Self;
}

Required Methods§

Source

fn background(self, background: impl Into<Color>) -> Self

Source

fn gutter_selected(self, gutter_selected: impl Into<Color>) -> Self

Source

fn gutter_unselected(self, gutter_unselected: impl Into<Color>) -> Self

Source

fn line_selected_background( self, line_selected_background: impl Into<Color>, ) -> Self

Source

fn cursor(self, cursor: impl Into<Color>) -> Self

Source

fn highlight(self, highlight: impl Into<Color>) -> Self

Source

fn text(self, text: impl Into<Color>) -> Self

Source

fn whitespace(self, whitespace: impl Into<Color>) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§