pub enum HGrid<'a, T: NumTrait + 'a> {
Grid {
meta: HashMap<String, HBox<'a, T>>,
col_index: HashMap<String, usize>,
cols: Vec<HCol<'a, T>>,
rows: Vec<HRow<'a, T>>,
},
Error {
dis: String,
errTrace: Option<String>,
},
Empty {
meta: Option<HashMap<String, HBox<'a, T>>>,
},
}
Variants§
Implementations§
Source§impl<'a, T: NumTrait + 'a> HGrid<'a, T>
impl<'a, T: NumTrait + 'a> HGrid<'a, T>
pub fn new( g_columns: Option<Vec<HCol<'a, T>>>, grid_rows: Vec<HashMap<String, HBox<'a, T>>>, ) -> HGrid<'a, T>
pub fn from_row_vec<'b>( columns: Vec<(String, Option<HashMap<String, HBox<'b, T>>>)>, grid_rows: Vec<Vec<Option<HBox<'b, T>>>>, ) -> HGrid<'b, T>
pub fn add_meta( self, meta: HashMap<String, HBox<'a, T>>, ) -> Result<HGrid<'a, T>, HGridErr>
pub fn add_col_meta( self, col: &str, meta: HashMap<String, HBox<'a, T>>, ) -> Result<Self, HGridErr>
pub fn get(&'a self, key: usize) -> Result<&'a HRow<'a, T>, HGridErr>
pub fn first(&'a self) -> Result<&'a HRow<'a, T>, HGridErr>
pub fn last(&'a self) -> Result<&'a HRow<'a, T>, HGridErr>
pub fn has(&self, key: &str) -> bool
pub fn meta(&'a self) -> &'a HashMap<String, HBox<'a, T>>
pub fn iter_cols(&'a self) -> Iter<'a, HCol<'a, T>>
pub fn iter(&'a self) -> Iter<'a, HRow<'a, T>>
pub fn as_ref(&self) -> &Self
Trait Implementations§
Source§impl<'a, T: 'a + NumTrait> HVal<'a, T> for HGrid<'a, T>
impl<'a, T: 'a + NumTrait> HVal<'a, T> for HGrid<'a, T>
fn to_zinc(&self, buf: &mut String) -> Result
fn to_json(&self, _buf: &mut String) -> Result
fn haystack_type(&self) -> HType
fn _eq(&self, other: &dyn HVal<'a, T>) -> bool
fn get_grid_val(&self) -> Option<&HGrid<'a, T>>
fn get_null_val(&self) -> Option<&HNull>
fn get_marker_val(&self) -> Option<&HMarker>
fn get_remove_val(&self) -> Option<&HRemove>
fn get_na_val(&self) -> Option<&HNA>
fn get_bool_val(&self) -> Option<&HBool>
fn get_string_val(&self) -> Option<&HStr>
fn get_uri_val(&self) -> Option<&HUri>
fn get_coord_val(&self) -> Option<&HCoord<T>>
fn get_datetime_val(&self) -> Option<&HDateTime>
fn get_date_val(&self) -> Option<&HDate>
fn get_time_val(&self) -> Option<&HTime>
fn get_number_val(&self) -> Option<&HNumber<T>>
fn get_ref_val(&self) -> Option<&HRef>
fn get_dict_val(&'a self) -> Option<&'a HDict<'a, T>>
fn get_list_val(&'a self) -> Option<&'a HList<'a, T>>
Auto Trait Implementations§
impl<'a, T> Freeze for HGrid<'a, T>
impl<'a, T> !RefUnwindSafe for HGrid<'a, T>
impl<'a, T> !Send for HGrid<'a, T>
impl<'a, T> !Sync for HGrid<'a, T>
impl<'a, T> Unpin for HGrid<'a, T>
impl<'a, T> !UnwindSafe for HGrid<'a, T>
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