#[non_exhaustive]pub enum WindowRelativeTo {
Editor,
Cursor,
Mouse,
Window(Window),
}
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.
Cursor
Positions the window relative to the current cursor position.
Mouse
Positions the window relative to the current mouse cursor position..
Window(Window)
Positions the window relative to another window.
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 From<WindowRelativeTo> for String
impl From<WindowRelativeTo> for String
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
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
.