Trait LineCount

Source
pub trait LineCount {
    // Required methods
    fn decrement(&mut self);
    fn empty(&self) -> bool;
}
Expand description

A trait for various types than can represent a number of lines.

Implementations are provided for all base unsigned integers.

Required Methods§

Source

fn decrement(&mut self)

Lower the number by one.

Source

fn empty(&self) -> bool

Check whether the number is equal to zero.

Implementations on Foreign Types§

Source§

impl LineCount for u8

Source§

fn decrement(&mut self)

Source§

fn empty(&self) -> bool

Source§

impl LineCount for u16

Source§

fn decrement(&mut self)

Source§

fn empty(&self) -> bool

Source§

impl LineCount for u32

Source§

fn decrement(&mut self)

Source§

fn empty(&self) -> bool

Source§

impl LineCount for u64

Source§

fn decrement(&mut self)

Source§

fn empty(&self) -> bool

Source§

impl LineCount for u128

Source§

fn decrement(&mut self)

Source§

fn empty(&self) -> bool

Source§

impl LineCount for usize

Source§

fn decrement(&mut self)

Source§

fn empty(&self) -> bool

Implementors§