#[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<WindowRelativeTo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WindowRelativeTo, <__D as Deserializer<'de>>::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) -> Object
fn from(pos: &WindowRelativeTo) -> Object
Converts to this type from the input type.
Source§impl From<WindowRelativeTo> for String
impl From<WindowRelativeTo> for String
Source§fn from(pos: WindowRelativeTo) -> String
fn from(pos: WindowRelativeTo) -> String
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> 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.