Enum PaneDirection
pub enum PaneDirection {
Left,
Down,
Up,
Right,
}Expand description
<C-w>h/j/k/l cardinal navigation. Geometry-aware: walks the
tree to find the spatial neighbour of the active pane.
Owned in lattice-core (alongside the pane geometry) so any
renderer + the grammar’s AppEffect::NavigatePane payload can
reference one canonical type. lattice-grammar re-exports it
for ergonomic access from AppEffect.
Variants§
Left
<C-w>h — the neighbour to the left.
Down
<C-w>j — the neighbour below.
Up
<C-w>k — the neighbour above.
Right
<C-w>l — the neighbour to the right.
Trait Implementations§
§impl Clone for PaneDirection
impl Clone for PaneDirection
§fn clone(&self) -> PaneDirection
fn clone(&self) -> PaneDirection
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 PaneDirection
§impl Debug for PaneDirection
impl Debug for PaneDirection
§impl<'de> Deserialize<'de> for PaneDirection
impl<'de> Deserialize<'de> for PaneDirection
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PaneDirection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PaneDirection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PaneDirection
§impl PartialEq for PaneDirection
impl PartialEq for PaneDirection
§impl Serialize for PaneDirection
impl Serialize for PaneDirection
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PaneDirection
Auto Trait Implementations§
impl Freeze for PaneDirection
impl RefUnwindSafe for PaneDirection
impl Send for PaneDirection
impl Sync for PaneDirection
impl Unpin for PaneDirection
impl UnsafeUnpin for PaneDirection
impl UnwindSafe for PaneDirection
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.