pub struct Legend {
pub hide: bool,
}Fields§
§hide: boolImplementations§
Source§impl Legend
impl Legend
pub fn new() -> Self
pub fn render(&self, editor: &Editor, frame: &mut TerminalFrame) -> Result<()>
pub fn region(&self, editor: &Editor, size: TerminalSize) -> TerminalRegion
pub fn toggle_hide(&mut self, editor: &mut Editor)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Legend
impl RefUnwindSafe for Legend
impl Send for Legend
impl Sync for Legend
impl Unpin for Legend
impl UnsafeUnpin for Legend
impl UnwindSafe for Legend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more