Enum minus::LineNumbers[][src]

pub enum LineNumbers {
    AlwaysOn,
    Enabled,
    Disabled,
    AlwaysOff,
}

Enum indicating whether to display the line numbers or not.

Note that displaying line numbers may be less performant than not doing it. minus tries to do as quickly as possible but the numbers and padding still have to be computed.

This implements Not to allow turning on/off line numbers when they where not locked in by the binary displaying the text.

Variants

AlwaysOn

Enable line numbers permanently, cannot be turned off by user.

Enabled

Line numbers should be turned on, although users can turn it off (i.e, set it to Disabled).

Disabled

Line numbers should be turned off, although users can turn it on (i.e, set it to Enabled).

AlwaysOff

Disable line numbers permanently, cannot be turned on by user.

Trait Implementations

impl Clone for LineNumbers[src]

impl Copy for LineNumbers[src]

impl Debug for LineNumbers[src]

impl Not for LineNumbers[src]

type Output = Self

The resulting type after applying the ! operator.

impl PartialEq<LineNumbers> for LineNumbers[src]

impl StructuralPartialEq for LineNumbers[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.