struct State {
nvim: Option<Rc<NeovimClient>>,
levels: Vec<Level>,
block: Option<Level>,
render_state: Rc<RefCell<RenderState>>,
drawing_area: DrawingArea,
cursor: Option<BlinkCursor<State>>,
}Fields
nvim: Option<Rc<NeovimClient>>levels: Vec<Level>block: Option<Level>render_state: Rc<RefCell<RenderState>>drawing_area: DrawingAreacursor: Option<BlinkCursor<State>>Implementations
sourceimpl State
impl State
fn new(drawing_area: DrawingArea, render_state: Rc<RefCell<RenderState>>) -> Self
fn request_area_size(&self)
fn preferred_height(&self) -> i32
fn set_cursor(&mut self, render_state: &RenderState, pos: usize, level: usize)
fn queue_redraw_cursor(&mut self)
Trait Implementations
sourceimpl CursorRedrawCb for State
impl CursorRedrawCb for State
fn queue_redraw_cursor(&mut self)
Auto Trait Implementations
impl !RefUnwindSafe for State
impl !Send for State
impl !Sync for State
impl Unpin for State
impl !UnwindSafe for State
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more