Skip to main content

EditorThemePartialExt

Trait EditorThemePartialExt 

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;
}
Available on crate feature code-editor only.

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

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§