Enum minus::LineNumbers [−][src]
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
Enable line numbers permanently, cannot be turned off by user.
Line numbers should be turned on, although users can turn it off
(i.e, set it to Disabled
).
Line numbers should be turned off, although users can turn it on
(i.e, set it to Enabled
).
Disable line numbers permanently, cannot be turned on by user.
Trait Implementations
impl Clone for LineNumbers
[src]
fn clone(&self) -> LineNumbers
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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.
fn not(self) -> Self::Output
[src]
impl PartialEq<LineNumbers> for LineNumbers
[src]
fn eq(&self, other: &LineNumbers) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for LineNumbers
[src]
Auto Trait Implementations
impl RefUnwindSafe for LineNumbers
[src]
impl Send for LineNumbers
[src]
impl Sync for LineNumbers
[src]
impl Unpin for LineNumbers
[src]
impl UnwindSafe for LineNumbers
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,