Enum nvim_oxi::types::WindowRelativeTo
source · [−]#[non_exhaustive]
pub enum WindowRelativeTo {
Editor,
Window(Window),
Cursor,
}Expand description
Specifies what a floating window is positioned relative to.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Editor
Positions the window relative to the global Neovim editor grid.
Window(Window)
Positions the window relative to another window.
Cursor
Positions the window relative to the current cursor position.
Trait Implementations
sourceimpl Clone for WindowRelativeTo
impl Clone for WindowRelativeTo
sourcefn clone(&self) -> WindowRelativeTo
fn clone(&self) -> WindowRelativeTo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for WindowRelativeTo
impl Debug for WindowRelativeTo
sourceimpl<'de> Deserialize<'de> for WindowRelativeTo
impl<'de> Deserialize<'de> for WindowRelativeTo
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
sourceimpl From<&WindowRelativeTo> for Object
impl From<&WindowRelativeTo> for Object
sourcefn from(pos: &WindowRelativeTo) -> Self
fn from(pos: &WindowRelativeTo) -> Self
Converts to this type from the input type.
sourceimpl Hash for WindowRelativeTo
impl Hash for WindowRelativeTo
sourceimpl PartialEq<WindowRelativeTo> for WindowRelativeTo
impl PartialEq<WindowRelativeTo> for WindowRelativeTo
sourcefn eq(&self, other: &WindowRelativeTo) -> bool
fn eq(&self, other: &WindowRelativeTo) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &WindowRelativeTo) -> bool
fn ne(&self, other: &WindowRelativeTo) -> bool
This method tests for !=.
impl Eq for WindowRelativeTo
impl StructuralEq for WindowRelativeTo
impl StructuralPartialEq for WindowRelativeTo
Auto Trait Implementations
impl RefUnwindSafe for WindowRelativeTo
impl Send for WindowRelativeTo
impl Sync for WindowRelativeTo
impl Unpin for WindowRelativeTo
impl UnwindSafe for WindowRelativeTo
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