pub struct Table {
pub color: bool,
pub width: usize,
pub left_offset: usize,
/* private fields */
}Fields§
§color: bool§width: usize§left_offset: usizeTrait Implementations§
Source§impl From<ExchangeRateResult> for Table
impl From<ExchangeRateResult> for Table
Source§fn from(value: ExchangeRateResult) -> Self
fn from(value: ExchangeRateResult) -> Self
Converts to this type from the input type.
Source§impl TableGet for Table
impl TableGet for Table
type RowLeftRef = SmolStr
type RowRightRef = SmolStr
fn get_header(&self) -> Option<&str>
fn get_column_left(&self) -> &str
fn get_column_right(&self) -> &str
fn get_rows(&self) -> &Vec<(Self::RowLeftRef, f64)>
fn get_width(&self) -> usize
fn get_left_offset(&self) -> usize
Source§impl<'a> TableTrait<'a> for Table
impl<'a> TableTrait<'a> for Table
type Header = SmolStr
type ColumnLeft = SmolStr
type ColumnRight = SmolStr
type RowLeft = SmolStr
fn new( header: Option<Self::Header>, column_left: Self::ColumnLeft, column_right: Self::ColumnRight, ) -> Self
fn disable_header(&mut self)
fn set_header(&mut self, header: Self::Header)
fn add_row(&mut self, row_left: Self::RowLeft, row_right: f64)
fn sort(&mut self, sort_by: &SortBy)
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnwindSafe for Table
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more