pub struct ClientView<'a, W: Wrap> { /* private fields */ }Implementations§
Source§impl<'a, W: WrapRef> ClientView<'a, W>
impl<'a, W: WrapRef> ClientView<'a, W>
pub fn new( fs: &'a Arc<dyn Fs + Send + Sync>, home: &'a Utf8Path, session: W::WrapRef<'a, Session>, state: W::WrapRef<'a, ClientState>, ) -> Self
pub fn session(&self) -> &Session
pub fn fs(&self) -> &'a Arc<dyn Fs + Send + Sync> ⓘ
pub fn home(&self) -> &Utf8Path
pub fn absolute_path(&self, path: &Utf8Path) -> Utf8PathBuf
pub fn display_path(&self, path: &Utf8Path) -> String
pub fn focused_buffer(&self) -> &Buffer
pub fn get_window(&self, window_key: WindowKey) -> Option<Window<'_>>
pub fn focused_window(&self) -> Window<'_>
pub fn assert_invariants(&self) -> Result<()>
Source§impl<W: WrapMut> ClientView<'_, W>
impl<W: WrapMut> ClientView<'_, W>
pub fn session_mut(&mut self) -> &mut Session
pub fn focused_buffer_mut(&mut self) -> &mut Buffer
pub fn focus_window(&mut self, window_key: WindowKey) -> bool
pub fn get_window_mut(&mut self, window_key: WindowKey) -> Option<WindowMut<'_>>
pub fn focused_window_mut(&mut self) -> WindowMut<'_>
Source§impl ClientView<'_, WMut>
impl ClientView<'_, WMut>
pub fn handle_event(&mut self, event: Event) -> Result<bool>
Methods from Deref<Target = ClientState>§
Trait Implementations§
Source§impl<W: WrapRef> Deref for ClientView<'_, W>
impl<W: WrapRef> Deref for ClientView<'_, W>
Auto Trait Implementations§
impl<'a, W> !RefUnwindSafe for ClientView<'a, W>
impl<'a, W> !UnwindSafe for ClientView<'a, W>
impl<'a, W> Freeze for ClientView<'a, W>
impl<'a, W> Send for ClientView<'a, W>
impl<'a, W> Sync for ClientView<'a, W>
impl<'a, W> Unpin for ClientView<'a, W>
impl<'a, W> UnsafeUnpin for ClientView<'a, W>
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