[][src]Enum creator_tools::utils::TtyWidth

pub enum TtyWidth {
    NoTty,
    Known(usize),
    Guess(usize),
}

Variants

NoTty
Known(usize)
Guess(usize)

Implementations

impl TtyWidth[src]

pub fn diagnostic_terminal_width(&self) -> Option<usize>[src]

Returns the width provided with -Z terminal-width to rustc to truncate diagnostics with long lines.

pub fn progress_max_width(&self) -> Option<usize>[src]

Returns the width used by progress bars for the tty.

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, 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.