pub struct Level {
model_layout: ModelLayout,
prompt_offset: usize,
preferred_width: i32,
preferred_height: i32,
}Fields
model_layout: ModelLayoutprompt_offset: usizepreferred_width: i32preferred_height: i32Implementations
sourceimpl Level
impl Level
pub fn insert(&mut self, c: String, shift: bool, render_state: &RenderState)
pub fn replace_from_ctx(
&mut self,
ctx: &CmdLineContext<'_>,
render_state: &RenderState
)
pub fn from_ctx(ctx: &CmdLineContext<'_>, render_state: &RenderState) -> Self
fn replace_line(
&mut self,
lines: Vec<Vec<(Rc<Highlight>, Vec<String>)>>,
append: bool
)
fn update_preferred_size(&mut self, render_state: &RenderState)
pub fn from_multiline_content(
content: &Vec<Vec<(u64, String)>>,
max_width: i32,
render_state: &RenderState
) -> Self
pub fn from_lines(
lines: Vec<Vec<(Rc<Highlight>, Vec<String>)>>,
max_width: i32,
render_state: &RenderState
) -> Self
fn update_cache(&mut self, render_state: &RenderState)
fn set_cursor(&mut self, render_state: &RenderState, pos: usize)
Auto Trait Implementations
impl RefUnwindSafe for Level
impl !Send for Level
impl !Sync for Level
impl Unpin for Level
impl UnwindSafe for Level
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