pub struct CodeStatus {
pub line: usize,
pub col: usize,
pub matches: usize,
pub current: usize,
pub hl_lines: usize,
pub lines: usize,
pub diags: [usize; 3],
pub diag: Option<u8>,
pub popup: usize,
pub popup_sel: usize,
pub sig: bool,
pub hidden: usize,
}Expand description
what code_status reports
Fields§
§line: usizethe caret’s line and column (from 1; columns with tabs expanded)
col: usize§matches: usizethe find bar’s matches (0: none or closed) and the current one (from 1; 0: none)
current: usize§hl_lines: usizethe lines tokenized for highlighting states in the editor’s last frame (the visible lines are tokenized again to draw them, not counted)
lines: usizethe number of lines
diags: [usize; 3]the document’s diagnostics: errors, warnings, infos (DIAG_* order)
diag: Option<u8>the severity (DIAG_*) of the most severe diagnostic at the caret (ui.code_diag: the diagnostic with its message)
popup: usizethe items the completion list shows (0: closed) and the chosen one (from 0)
popup_sel: usize§sig: boolsignature help is open
the lines folded away
Trait Implementations§
Source§impl Clone for CodeStatus
impl Clone for CodeStatus
impl Copy for CodeStatus
Source§impl Debug for CodeStatus
impl Debug for CodeStatus
Source§impl Default for CodeStatus
impl Default for CodeStatus
Source§impl PartialEq for CodeStatus
impl PartialEq for CodeStatus
impl StructuralPartialEq for CodeStatus
Auto Trait Implementations§
impl Forget for CodeStatus
impl Freeze for CodeStatus
impl RefUnwindSafe for CodeStatus
impl Send for CodeStatus
impl Sync for CodeStatus
impl Unpin for CodeStatus
impl UnsafeUnpin for CodeStatus
impl UnwindSafe for CodeStatus
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