pub enum CompactSource {
Manual,
Auto,
}Expand description
Whether a compaction event came from explicit user action (/compact)
or from AutocompactExtension triggering on a heavy turn.
Variants§
Manual
User typed /compact (or pressed the palette entry).
Auto
AutocompactExtension triggered automatically.
Trait Implementations§
Source§impl Clone for CompactSource
impl Clone for CompactSource
Source§fn clone(&self) -> CompactSource
fn clone(&self) -> CompactSource
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 moreSource§impl Debug for CompactSource
impl Debug for CompactSource
Source§impl<'de> Deserialize<'de> for CompactSource
impl<'de> Deserialize<'de> for CompactSource
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
Source§impl PartialEq for CompactSource
impl PartialEq for CompactSource
Source§fn eq(&self, other: &CompactSource) -> bool
fn eq(&self, other: &CompactSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CompactSource
impl Serialize for CompactSource
impl Copy for CompactSource
impl Eq for CompactSource
impl StructuralPartialEq for CompactSource
Auto Trait Implementations§
impl Freeze for CompactSource
impl RefUnwindSafe for CompactSource
impl Send for CompactSource
impl Sync for CompactSource
impl Unpin for CompactSource
impl UnsafeUnpin for CompactSource
impl UnwindSafe for CompactSource
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.