Trait xgadget::gadget::DisplayLen[][src]

pub trait DisplayLen: Display {
    fn len(&self) -> usize;
fn is_empty(&self) -> bool; }

Implementors track count of visible terminal characters for Display's fmt function (for colored strings).

Required methods

fn len(&self) -> usize[src]

Get the count of visible terminal characters for Display's fmt function

fn is_empty(&self) -> bool[src]

Check if display length is zero

Loading content...

Implementors

impl DisplayLen for DisplayString[src]

fn len(&self) -> usize[src]

Get the count of visible terminal characters for Display's fmt function

fn is_empty(&self) -> bool[src]

Check if display length is zero

Loading content...