pub struct TabPage(/* private fields */);
Expand description
A wrapper around a Neovim tab handle.
Implementations§
Source§impl TabPage
impl TabPage
Sourcepub fn current() -> Self
pub fn current() -> Self
Shorthand for get_current_tabpage
.
Sourcepub fn del_var(&mut self, name: &str) -> Result<(), Error>
pub fn del_var(&mut self, name: &str) -> Result<(), Error>
Binding to nvim_tabpage_del_var()
.
Removes a tab-scoped (t:
) variable.
Sourcepub fn get_number(&self) -> Result<u32, Error>
pub fn get_number(&self) -> Result<u32, Error>
Binding to nvim_tabpage_get_number()
.
Gets the tabpage number.
Sourcepub fn get_var<Var>(&self, name: &str) -> Result<Var, Error>where
Var: FromObject,
pub fn get_var<Var>(&self, name: &str) -> Result<Var, Error>where
Var: FromObject,
Binding to nvim_tabpage_get_var()
.
Gets a tab-scoped (t:
) variable.
Sourcepub fn get_win(&self) -> Result<Window, Error>
pub fn get_win(&self) -> Result<Window, Error>
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>, Error>
pub fn list_wins(&self) -> Result<impl SuperIterator<Window>, Error>
Binding to nvim_tabpage_list_wins()
.
Gets the windows in a tabpage.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TabPage
impl<'de> Deserialize<'de> for TabPage
Source§fn 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
Source§impl FromObject for TabPage
impl FromObject for TabPage
impl Eq for TabPage
impl StructuralPartialEq for TabPage
Auto Trait Implementations§
impl Freeze for TabPage
impl RefUnwindSafe for TabPage
impl Send for TabPage
impl Sync for TabPage
impl Unpin for TabPage
impl UnwindSafe for TabPage
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§type Error = Infallible
type Error = Infallible
The error type in the returned
Result
.Source§fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
Converts the value into a
Result
.