pub struct App {
pub should_quit: bool,
pub workspace: PathBuf,
pub graph: RelationGraph,
pub selected: Option<NodeId>,
pub pending_key: Option<char>,
pub search: Option<SearchState>,
pub save: Option<SaveState>,
pub help: Option<HelpState>,
pub analysis_status: AnalysisStatus,
pub message_history: Vec<String>,
pub viewport: Viewport,
pub canvas_notice: Option<String>,
/* private fields */
}Fields§
§should_quit: bool§workspace: PathBuf§graph: RelationGraph§selected: Option<NodeId>§pending_key: Option<char>§search: Option<SearchState>§save: Option<SaveState>§help: Option<HelpState>§analysis_status: AnalysisStatus§message_history: Vec<String>§viewport: Viewport§canvas_notice: Option<String>Implementations§
Source§impl App
impl App
pub fn set_symbol_filter(&mut self, symbol_filter: SymbolFilter)
pub fn reload_symbol_filter( &mut self, symbol_filter: SymbolFilter, hierarchy_available: bool, ) -> Vec<HierarchyLoadRequest>
Source§impl App
impl App
pub fn open_save(&mut self)
pub fn close_save(&mut self)
pub fn push_save_char(&mut self, character: char)
pub fn pop_save_char(&mut self)
pub fn fail_save(&mut self, error: impl Into<String>)
pub fn complete_save(&mut self, path: &Path)
Source§impl App
impl App
pub fn from_cli(cli: Cli) -> Self
pub fn quit(&mut self)
pub fn set_analysis_error(&mut self, error: impl Into<String>)
pub fn set_analysis_status(&mut self, status: AnalysisStatus)
pub fn set_canvas_notice(&mut self, message: impl Into<String>)
pub fn set_canvas_error(&mut self, message: impl Into<String>)
pub fn clear_canvas_notice(&mut self)
pub fn canvas_notice_is_error(&self) -> bool
pub fn pan_viewport(&mut self, delta_x: i32, delta_y: i32)
pub fn open_search( &mut self, kind: SearchKind, provider_available: bool, ) -> Option<SearchRequest>
pub fn close_search(&mut self)
pub fn push_search_char(&mut self, character: char) -> Option<SearchRequest>
pub fn pop_search_char(&mut self) -> Option<SearchRequest>
pub fn finish_search( &mut self, request_id: u64, result: Result<Vec<SearchItem>, String>, )
pub fn start_search(&mut self, request_id: u64)
pub fn select_search_item(&mut self, index: usize)
pub fn move_search_selection(&mut self, offset: isize)
pub fn accept_search_selection(&mut self)
pub fn focus_symbol( &mut self, identity: SymbolIdentity, ) -> Result<NodeId, String>
pub fn delete_selected_anchor(&mut self) -> bool
pub fn delete_selected_branch(&mut self, direction: HierarchyDirection) -> bool
pub fn select_node(&mut self, node_id: NodeId) -> bool
pub fn toggle_selected_branch( &mut self, direction: HierarchyDirection, hierarchy_available: bool, ) -> Option<HierarchyLoadRequest>
pub fn toggle_node_branch( &mut self, node_id: NodeId, direction: HierarchyDirection, hierarchy_available: bool, ) -> Option<HierarchyLoadRequest>
pub fn refresh_selected_branches( &mut self, hierarchy_available: bool, ) -> Vec<HierarchyLoadRequest>
pub fn finish_hierarchy( &mut self, request: &HierarchyLoadRequest, result: Result<HierarchyResponse, String>, ) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
impl UnwindSafe for App
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> 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