pub struct SourcePanelState {Show 29 fields
pub content: Vec<String>,
pub current_line: Option<usize>,
pub cursor_line: usize,
pub cursor_col: usize,
pub scroll_offset: usize,
pub horizontal_scroll_offset: usize,
pub file_path: Option<String>,
pub language: String,
pub area_height: u16,
pub area_width: u16,
pub search_query: String,
pub search_matches: Vec<(usize, usize, usize)>,
pub current_match: Option<usize>,
pub is_searching: bool,
pub file_search_query: String,
pub file_search_cursor_pos: usize,
pub file_search_filtered_indices: Vec<usize>,
pub file_search_selected: usize,
pub file_search_scroll: usize,
pub file_search_message: Option<String>,
pub is_file_searching: bool,
pub number_buffer: String,
pub expecting_g: bool,
pub g_pressed: bool,
pub mode: SourcePanelMode,
pub traced_lines: HashSet<usize>,
pub disabled_lines: HashSet<usize>,
pub pending_trace_line: Option<usize>,
pub trace_locations: HashMap<u32, (String, usize)>,
}Expand description
Source panel state
Fields§
§content: Vec<String>§current_line: Option<usize>§cursor_line: usize§cursor_col: usize§scroll_offset: usize§horizontal_scroll_offset: usize§file_path: Option<String>§language: String§area_height: u16§area_width: u16§search_query: String§search_matches: Vec<(usize, usize, usize)>§current_match: Option<usize>§is_searching: bool§file_search_query: String§file_search_cursor_pos: usize§file_search_filtered_indices: Vec<usize>§file_search_selected: usize§file_search_scroll: usize§file_search_message: Option<String>§is_file_searching: bool§number_buffer: String§expecting_g: bool§g_pressed: bool§mode: SourcePanelMode§traced_lines: HashSet<usize>§disabled_lines: HashSet<usize>§pending_trace_line: Option<usize>§trace_locations: HashMap<u32, (String, usize)>Implementations§
Trait Implementations§
Source§impl Clone for SourcePanelState
impl Clone for SourcePanelState
Source§fn clone(&self) -> SourcePanelState
fn clone(&self) -> SourcePanelState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourcePanelState
impl Debug for SourcePanelState
Auto Trait Implementations§
impl Freeze for SourcePanelState
impl RefUnwindSafe for SourcePanelState
impl Send for SourcePanelState
impl Sync for SourcePanelState
impl Unpin for SourcePanelState
impl UnwindSafe for SourcePanelState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more