#[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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl 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<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
sourceimpl From<&WindowRelativeTo> for Object
impl From<&WindowRelativeTo> for Object
sourcefn from(pos: &WindowRelativeTo) -> Object
fn from(pos: &WindowRelativeTo) -> Object
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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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