pub struct TableRef<'a> {
pub color: bool,
pub width: usize,
pub left_offset: usize,
/* private fields */
}Fields§
§color: bool§width: usize§left_offset: usizeTrait Implementations§
Source§impl<'a> From<&'a ExchangeRateResult> for TableRef<'a>
impl<'a> From<&'a ExchangeRateResult> for TableRef<'a>
Source§fn from(value: &'a ExchangeRateResult) -> Self
fn from(value: &'a ExchangeRateResult) -> Self
Converts to this type from the input type.
Source§impl<'a> TableGet for TableRef<'a>
impl<'a> TableGet for TableRef<'a>
type RowLeftRef = &'a str
type RowRightRef = &'a str
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 TableRef<'a>
impl<'a> TableTrait<'a> for TableRef<'a>
type Header = &'a str
type ColumnLeft = &'a str
type ColumnRight = &'a str
type RowLeft = &'a str
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<'a> Freeze for TableRef<'a>
impl<'a> RefUnwindSafe for TableRef<'a>
impl<'a> Send for TableRef<'a>
impl<'a> Sync for TableRef<'a>
impl<'a> Unpin for TableRef<'a>
impl<'a> UnwindSafe for TableRef<'a>
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