Struct pepper::ui::RenderContext

source ·
pub struct RenderContext<'a> {
    pub editor: &'a Editor,
    pub status_bar_display: &'a LoggerStatusBarDisplay<'a, 'a>,
    pub viewport_size: (u16, u16),
    pub scroll: BufferPositionIndex,
    pub has_focus: bool,
}

Fields§

§editor: &'a Editor§status_bar_display: &'a LoggerStatusBarDisplay<'a, 'a>§viewport_size: (u16, u16)§scroll: BufferPositionIndex§has_focus: bool

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.