pub enum ViewportPos {
Top,
Middle,
Bottom,
}Expand description
Vim’s H / M / L target positions: where in the visible
viewport the cursor lands. App-side concept hosted here so
AppEffect::JumpViewport(ViewportPos) can carry the typed
payload without lattice-ui-tui having to dance through a
dependency cycle. Slice 8.i.2.c hoist; the App’s previous
crate::app::ViewportPos becomes a pub use re-export of
this type.
Variants§
Top
H – first visible line of the viewport.
Middle
M – middle visible line of the viewport.
Bottom
L – last visible line of the viewport.
Trait Implementations§
Source§impl Clone for ViewportPos
impl Clone for ViewportPos
Source§fn clone(&self) -> ViewportPos
fn clone(&self) -> ViewportPos
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ViewportPos
Source§impl Debug for ViewportPos
impl Debug for ViewportPos
Source§impl<'de> Deserialize<'de> for ViewportPos
impl<'de> Deserialize<'de> for ViewportPos
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
impl Eq for ViewportPos
Source§impl PartialEq for ViewportPos
impl PartialEq for ViewportPos
Source§impl Serialize for ViewportPos
impl Serialize for ViewportPos
impl StructuralPartialEq for ViewportPos
Auto Trait Implementations§
impl Freeze for ViewportPos
impl RefUnwindSafe for ViewportPos
impl Send for ViewportPos
impl Sync for ViewportPos
impl Unpin for ViewportPos
impl UnsafeUnpin for ViewportPos
impl UnwindSafe for ViewportPos
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.