Struct workspace2::pane::NavHistory
source · pub struct NavHistory(_);
Implementations§
pub fn for_each_entry( &self, cx: &AppContext, f: impl FnMut(&NavigationEntry, (ProjectPath, Option<PathBuf>)) )
pub fn set_mode(&mut self, mode: NavigationMode)
pub fn mode(&self) -> NavigationMode
pub fn disable(&mut self)
pub fn enable(&mut self)
pub fn pop( &mut self, mode: NavigationMode, cx: &mut WindowContext<'_> ) -> Option<NavigationEntry>
pub fn push<D: 'static + Send + Any>( &mut self, data: Option<D>, item: Arc<dyn WeakItemHandle>, cx: &mut WindowContext<'_> )
pub fn remove_item(&mut self, item_id: EntityId)
pub fn path_for_item( &self, item_id: EntityId ) -> Option<(ProjectPath, Option<PathBuf>)>
Trait Implementations§
source§fn clone(&self) -> NavHistory
fn clone(&self) -> NavHistory
Returns a copy 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 moreAuto Trait Implementations§
Blanket Implementations§
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more