#[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§
Source§impl Clone for WindowRelativeTo
impl Clone for WindowRelativeTo
Source§fn clone(&self) -> WindowRelativeTo
fn clone(&self) -> WindowRelativeTo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WindowRelativeTo
impl Debug for WindowRelativeTo
Source§impl<'de> Deserialize<'de> for WindowRelativeTo
impl<'de> Deserialize<'de> for WindowRelativeTo
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 From<&WindowRelativeTo> for Object
impl From<&WindowRelativeTo> for Object
Source§fn from(pos: &WindowRelativeTo) -> Self
fn from(pos: &WindowRelativeTo) -> Self
Converts to this type from the input type.
Source§impl Hash for WindowRelativeTo
impl Hash for WindowRelativeTo
Source§impl PartialEq for WindowRelativeTo
impl PartialEq for WindowRelativeTo
impl Eq for WindowRelativeTo
impl StructuralPartialEq for WindowRelativeTo
Auto Trait Implementations§
impl Freeze for WindowRelativeTo
impl RefUnwindSafe for WindowRelativeTo
impl Send for WindowRelativeTo
impl Sync for WindowRelativeTo
impl Unpin for WindowRelativeTo
impl UnwindSafe for WindowRelativeTo
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