pub struct TabPage(_);Expand description
A newtype struct wrapping a Neovim tabpage. All the nvim_tabpage_*
functions taking a tabpage handle as their first argument are implemented
as methods on this object.
Implementations
sourceimpl TabPage
impl TabPage
sourcepub fn current() -> Self
pub fn current() -> Self
Shorthand for
api::get_current_tabpage.
sourcepub fn del_var(&mut self, name: &str) -> Result<()>
pub fn del_var(&mut self, name: &str) -> Result<()>
Binding to nvim_tabpage_del_var.
Removes a tab-scoped (t:) variable.
sourcepub fn get_number(&self) -> Result<u32>
pub fn get_number(&self) -> Result<u32>
Binding to nvim_tabpage_get_number.
Gets the tabpage number.
sourcepub fn get_var<Var>(&self, name: &str) -> Result<Var> where
Var: FromObject,
pub fn get_var<Var>(&self, name: &str) -> Result<Var> where
Var: FromObject,
Binding to nvim_tabpage_get_var.
Gets a tab-scoped (t:) variable.
sourcepub fn get_win(&self) -> Result<Window>
pub fn get_win(&self) -> Result<Window>
Binding to nvim_tabpage_get_win.
Gets the current window in a tabpage.
sourcepub fn is_valid(&self) -> bool
pub fn is_valid(&self) -> bool
Binding to nvim_tabpage_is_valid.
Checks if a tabpage is valid.
sourcepub fn list_wins(&self) -> Result<impl SuperIterator<Window>>
pub fn list_wins(&self) -> Result<impl SuperIterator<Window>>
Binding to nvim_tabpage_list_wins.
Gets the windows in a tabpage.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for TabPage
impl<'de> Deserialize<'de> for TabPage
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TabPage
impl StructuralEq for TabPage
impl StructuralPartialEq for TabPage
Auto Trait Implementations
impl RefUnwindSafe for TabPage
impl Send for TabPage
impl Sync for TabPage
impl Unpin for TabPage
impl UnwindSafe for TabPage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more