Struct modality_api::types::LogicalTime
source · pub struct LogicalTime(_);
Expand description
A segmented logical clock
Implementations§
source§impl LogicalTime
impl LogicalTime
pub fn unary<A: Into<u64>>(a: A) -> Self
pub fn binary<A: Into<u64>, B: Into<u64>>(a: A, b: B) -> Self
pub fn trinary<A: Into<u64>, B: Into<u64>, C: Into<u64>>(a: A, b: B, c: C) -> Self
pub fn quaternary<A: Into<u64>, B: Into<u64>, C: Into<u64>, D: Into<u64>>(
a: A,
b: B,
c: C,
d: D
) -> Self
pub fn get_raw(&self) -> &[u64; 4]
Trait Implementations§
source§impl Clone for LogicalTime
impl Clone for LogicalTime
source§fn clone(&self) -> LogicalTime
fn clone(&self) -> LogicalTime
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LogicalTime
impl Debug for LogicalTime
source§impl Display for LogicalTime
impl Display for LogicalTime
source§impl Encode for LogicalTime
impl Encode for LogicalTime
source§impl From<LogicalTime> for AttrVal
impl From<LogicalTime> for AttrVal
source§fn from(lt: LogicalTime) -> AttrVal
fn from(lt: LogicalTime) -> AttrVal
Converts to this type from the input type.
source§impl FromStr for LogicalTime
impl FromStr for LogicalTime
source§impl Hash for LogicalTime
impl Hash for LogicalTime
source§impl Ord for LogicalTime
impl Ord for LogicalTime
source§impl PartialEq<LogicalTime> for LogicalTime
impl PartialEq<LogicalTime> for LogicalTime
source§fn eq(&self, other: &LogicalTime) -> bool
fn eq(&self, other: &LogicalTime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<LogicalTime> for LogicalTime
impl PartialOrd<LogicalTime> for LogicalTime
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