HVal

Trait HVal 

Source
pub trait HVal<'a, T: NumTrait + 'a> {
Show 20 methods // Required methods 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; // Provided methods 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>> { ... } fn get_grid_val(&'a self) -> Option<&'a HGrid<'a, T>> { ... }
}

Required Methods§

Source

fn to_zinc(&self, buf: &mut String) -> Result

Source

fn to_json(&self, buf: &mut String) -> Result

Source

fn haystack_type(&self) -> HType

Source

fn _eq(&self, other: &dyn HVal<'a, T>) -> bool

Provided Methods§

Source

fn get_null_val(&self) -> Option<&HNull>

Source

fn get_marker_val(&self) -> Option<&HMarker>

Source

fn get_remove_val(&self) -> Option<&HRemove>

Source

fn get_na_val(&self) -> Option<&HNA>

Source

fn get_bool_val(&self) -> Option<&HBool>

Source

fn get_string_val(&self) -> Option<&HStr>

Source

fn get_uri_val(&self) -> Option<&HUri>

Source

fn get_coord_val(&self) -> Option<&HCoord<T>>

Source

fn get_datetime_val(&self) -> Option<&HDateTime>

Source

fn get_date_val(&self) -> Option<&HDate>

Source

fn get_time_val(&self) -> Option<&HTime>

Source

fn get_number_val(&self) -> Option<&HNumber<T>>

Source

fn get_ref_val(&self) -> Option<&HRef>

Source

fn get_dict_val(&'a self) -> Option<&'a HDict<'a, T>>

Source

fn get_list_val(&'a self) -> Option<&'a HList<'a, T>>

Source

fn get_grid_val(&'a self) -> Option<&'a HGrid<'a, T>>

Trait Implementations§

Source§

impl<'a, T: NumTrait + 'a> Debug for dyn HVal<'a, T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, T: NumTrait + 'a> Display for dyn HVal<'a, T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, T: NumTrait + 'a> PartialEq for dyn HVal<'a, T>

Source§

fn eq(&self, other: &dyn HVal<'a, T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a, T: NumTrait + 'a> ZincReader<'a, T> for dyn HVal<'a, T>

Source§

fn parse<'b>(buf: &'b str) -> IResult<&'b str, HBox<'a, T>>
where 'a: 'b,

Source§

impl<'a, T: NumTrait + 'a> ZincWriter<'a, T> for dyn HVal<'a, T> + 'a

Source§

fn to_zinc(&self, buf: &mut String) -> Result

Implementors§

Source§

impl<'a, T: 'a + NumTrait> HVal<'a, T> for HGrid<'a, T>