pub enum RevealMode {
Fit,
FitForce,
Center,
}Expand description
How a reveal request should autoscroll the view to the newest caret.
Variants§
Fit
Fit the newest caret with the margin band, but HOLD the viewport if any cursor is already on screen — a multi-cursor op (select-all-occurrences, multi-cursor typing) must not scroll away from cursors the user can already see. Identical to a plain fit for a single caret.
FitForce
Always fit the newest caret, even when other cursors are on screen — a deliberate jump to a just-added cursor (Ctrl+D add-next-occurrence).
Center
Center the target row (find / diagnostic navigation).
Trait Implementations§
Source§impl Clone for RevealMode
impl Clone for RevealMode
Source§fn clone(&self) -> RevealMode
fn clone(&self) -> RevealMode
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 RevealMode
Source§impl Debug for RevealMode
impl Debug for RevealMode
impl Eq for RevealMode
Source§impl PartialEq for RevealMode
impl PartialEq for RevealMode
impl StructuralPartialEq for RevealMode
Auto Trait Implementations§
impl Freeze for RevealMode
impl RefUnwindSafe for RevealMode
impl Send for RevealMode
impl Sync for RevealMode
impl Unpin for RevealMode
impl UnsafeUnpin for RevealMode
impl UnwindSafe for RevealMode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.