pub struct Window(_);
Expand description

A newtype struct wrapping a Neovim window. All the nvim_win_* functions taking a window handle as their first argument are implemented as methods on this object.

Implementations

Binding to nvim_win_get_config.

Gets the window configuration.

Binding to nvim_win_get_config.

Configures the window layout. Only for floating and external windows.

Shorthand for api::get_current_win.

Binding to nvim_win_call.

Calls a function with this window as the temporary current window.

Binding to nvim_win_close.

Closes the window. Not allowed when textlock is active.

Binding to nvim_win_del_var.

Removes a window-scoped (w:) variable.

Binding to nvim_win_get_buf.

Gets the current Buffer in the window.

Binding to nvim_win_get_cursor.

Gets the (1,0)-indexed cursor position in the window.

Binding to nvim_win_get_height.

Gets the window height as a count of rows.

Binding to nvim_win_get_number.

Gets the window number.

Binding to nvim_win_get_option.

Gets a window option value.

Binding to nvim_win_get_position.

Gets the window position in display cells.

Binding to nvim_win_get_tabpage.

Gets the window’s TabPage.

Binding to nvim_win_get_var.

Gets a window-scoped (w:) variable.

Binding to nvim_win_get_width.

Gets the window width as a number of columns.

Binding to nvim_win_hide.

Closes the window and hides the buffer it contains.

Binding to nvim_win_is_valid.

Checks if the window is valid.

Binding to nvim_win_set_buf.

Sets buffer as the current buffer in the window.

Binding to nvim_win_set_cursor.

Sets the (1,0)-indexed cursor in the window. This will scroll the window even if it’s not the current one.

Binding to nvim_win_set_height.

Sets the window height.

Binding to nvim_win_set_option.

Sets a window option value. Passing None as value deletes the option (only works if there’s a global fallback).

Binding to nvim_win_set_var.

Sets a window-scoped (w:) variable.

Binding to nvim_win_set_width.

Sets the window width.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.