pub struct DualPane {
pub left: Pane,
pub right: Pane,
pub active: PaneId,
}Fields§
§left: Pane§right: Pane§active: PaneIdImplementations§
Source§impl DualPane
impl DualPane
pub fn new(left_cwd: PathBuf, right_cwd: PathBuf) -> Self
pub fn active_pane(&self) -> &Pane
pub fn active_pane_mut(&mut self) -> &mut Pane
pub fn pane(&self, id: PaneId) -> &Pane
pub fn pane_mut(&mut self, id: PaneId) -> &mut Pane
pub fn switch_active(&mut self)
Sourcepub fn sync_inactive_to_active(&mut self)
pub fn sync_inactive_to_active(&mut self)
Point the inactive pane at the active pane’s directory, as a normal navigation: it is recorded in that pane’s history, and the pane keeps its own sort, hidden-files and filter settings.
Trait Implementations§
Auto Trait Implementations§
impl Forget for DualPane
impl Freeze for DualPanewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Entry>: Freeze,
PhantomData<(usize, ())>: Freeze,
PhantomData<PathBuf>: Freeze,
impl Move for DualPane
impl RefUnwindSafe for DualPane
impl Send for DualPane
impl Sync for DualPane
impl Unpin for DualPane
impl UnsafeUnpin for DualPanewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Entry>: UnsafeUnpin,
PhantomData<(usize, ())>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
impl UnwindSafe for DualPane
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