pub type DatumRef<'a> = Option<ScalarRefImpl<'a>>;Aliased Type§
pub enum DatumRef<'a> {
None,
Some(ScalarRefImpl<'a>),
}Variants§
Trait Implementations§
Source§impl DefaultOrd for DatumRef<'_>
impl DefaultOrd for DatumRef<'_>
fn default_cmp(&self, other: &Self) -> Ordering
Source§impl DefaultPartialOrd for DatumRef<'_>
impl DefaultPartialOrd for DatumRef<'_>
fn default_partial_cmp(&self, other: &Self) -> Option<Ordering>
Source§impl ToDatumRef for DatumRef<'_>
impl ToDatumRef for DatumRef<'_>
Source§fn to_datum_ref(&self) -> DatumRef<'_>
fn to_datum_ref(&self) -> DatumRef<'_>
Convert the datum to
DatumRef.Source§impl ToText for DatumRef<'_>
impl ToText for DatumRef<'_>
Source§fn write<W: Write>(&self, f: &mut W) -> Result
fn write<W: Write>(&self, f: &mut W) -> Result
Write the text to the writer regardless of its data type Read more
Source§fn write_with_type<W: Write>(&self, ty: &DataType, f: &mut W) -> Result
fn write_with_type<W: Write>(&self, ty: &DataType, f: &mut W) -> Result
Write the text to the writer according to its data type
Source§fn to_text_with_type(&self, ty: &DataType) -> String
fn to_text_with_type(&self, ty: &DataType) -> String
Convert to text according to its data type
Source§fn to_text(&self) -> String
fn to_text(&self) -> String
to_text is a special version of to_text_with_type, it convert the scalar to default type
text. E.g. for Int64, it will convert to text as a Int64 type.
We should prefer to use to_text_with_type because it’s more clear and readable. Read moreSource§fn text_display(&self) -> impl Display + '_
fn text_display(&self) -> impl Display + '_
Returns an displayable wrapper implemented with
ToText::write.