pub struct ViewportEfficiency {
pub available_width: u16,
pub used_width: u16,
pub wasted_space: u16,
pub efficiency_percent: u8,
pub visible_columns: usize,
pub column_widths: Vec<u16>,
pub next_column_width: Option<u16>,
pub columns_that_could_fit: Vec<(usize, u16)>,
}
Expand description
Viewport efficiency metrics
Fields§
§available_width: u16
§used_width: u16
§wasted_space: u16
§efficiency_percent: u8
§visible_columns: usize
§column_widths: Vec<u16>
§next_column_width: Option<u16>
§columns_that_could_fit: Vec<(usize, u16)>
Implementations§
Source§impl ViewportEfficiency
impl ViewportEfficiency
Sourcepub fn to_status_string(&self) -> String
pub fn to_status_string(&self) -> String
Format as a compact status line message
Sourcepub fn to_debug_string(&self) -> String
pub fn to_debug_string(&self) -> String
Format as detailed debug info
Trait Implementations§
Source§impl Clone for ViewportEfficiency
impl Clone for ViewportEfficiency
Source§fn clone(&self) -> ViewportEfficiency
fn clone(&self) -> ViewportEfficiency
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ViewportEfficiency
impl RefUnwindSafe for ViewportEfficiency
impl Send for ViewportEfficiency
impl Sync for ViewportEfficiency
impl Unpin for ViewportEfficiency
impl UnwindSafe for ViewportEfficiency
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more