Enum automerge_test::OrdScalarValue
source · pub enum OrdScalarValue {
Bytes(Vec<u8>),
Str(SmolStr),
Int(i64),
Uint(u64),
F64(Total<f64>),
Counter(i64),
Timestamp(i64),
Boolean(bool),
Null,
Unknown {
type_code: u8,
bytes: Vec<u8>,
},
}
Variants§
Bytes(Vec<u8>)
Str(SmolStr)
Int(i64)
Uint(u64)
F64(Total<f64>)
Counter(i64)
Timestamp(i64)
Boolean(bool)
Null
Unknown
Trait Implementations§
source§impl Debug for OrdScalarValue
impl Debug for OrdScalarValue
source§impl From<&OrdScalarValue> for ScalarValue
impl From<&OrdScalarValue> for ScalarValue
source§fn from(v: &OrdScalarValue) -> Self
fn from(v: &OrdScalarValue) -> Self
Converts to this type from the input type.
source§impl From<ScalarValue> for OrdScalarValue
impl From<ScalarValue> for OrdScalarValue
source§impl Hash for OrdScalarValue
impl Hash for OrdScalarValue
source§impl Ord for OrdScalarValue
impl Ord for OrdScalarValue
source§fn cmp(&self, other: &OrdScalarValue) -> Ordering
fn cmp(&self, other: &OrdScalarValue) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<OrdScalarValue> for OrdScalarValue
impl PartialEq<OrdScalarValue> for OrdScalarValue
source§fn eq(&self, other: &OrdScalarValue) -> bool
fn eq(&self, other: &OrdScalarValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<OrdScalarValue> for OrdScalarValue
impl PartialOrd<OrdScalarValue> for OrdScalarValue
source§fn partial_cmp(&self, other: &OrdScalarValue) -> Option<Ordering>
fn partial_cmp(&self, other: &OrdScalarValue) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more