Variants
NoTty
Known(usize)
Guess(usize)
Implementations
sourceimpl TtyWidth
impl TtyWidth
sourcepub fn diagnostic_terminal_width(&self) -> Option<usize>
pub fn diagnostic_terminal_width(&self) -> Option<usize>
Returns the width provided with -Z terminal-width
to rustc to truncate diagnostics with
long lines.
sourcepub fn progress_max_width(&self) -> Option<usize>
pub fn progress_max_width(&self) -> Option<usize>
Returns the width used by progress bars for the tty.
Auto Trait Implementations
impl RefUnwindSafe for TtyWidth
impl Send for TtyWidth
impl Sync for TtyWidth
impl Unpin for TtyWidth
impl UnwindSafe for TtyWidth
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more