pub struct TabPage(/* private fields */);Expand description
A wrapper around a Neovim tab handle.
Implementations§
Source§impl TabPage
impl TabPage
Sourcepub fn current() -> TabPage
pub fn current() -> TabPage
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<TabPage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TabPage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TabPage
impl Serialize for TabPage
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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.