#[non_exhaustive]
pub enum CommandRange {
CurrentLine,
WholeFile,
Count(u32),
}Expand description
See :h command-range for details.
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.
CurrentLine
WholeFile
Count(u32)
Trait Implementations
sourceimpl Clone for CommandRange
impl Clone for CommandRange
sourcefn clone(&self) -> CommandRange
fn clone(&self) -> CommandRange
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 CommandRange
impl Debug for CommandRange
sourceimpl<'de> Deserialize<'de> for CommandRange
impl<'de> Deserialize<'de> for CommandRange
sourcefn deserialize<D>(
deserializer: D
) -> Result<CommandRange, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<CommandRange, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for CommandRange
impl Hash for CommandRange
sourceimpl PartialEq<CommandRange> for CommandRange
impl PartialEq<CommandRange> for CommandRange
sourcefn eq(&self, other: &CommandRange) -> bool
fn eq(&self, other: &CommandRange) -> bool
sourceimpl Serialize for CommandRange
impl Serialize for CommandRange
sourcefn 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 Copy for CommandRange
impl Eq for CommandRange
impl StructuralEq for CommandRange
impl StructuralPartialEq for CommandRange
Auto Trait Implementations
impl RefUnwindSafe for CommandRange
impl Send for CommandRange
impl Sync for CommandRange
impl Unpin for CommandRange
impl UnwindSafe for CommandRange
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