pub struct LogicalTime(/* private fields */);
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<'b> Decode<'b> for LogicalTime
impl<'b> Decode<'b> 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 for LogicalTime
impl PartialEq for LogicalTime
Source§impl PartialOrd for LogicalTime
impl PartialOrd for LogicalTime
Source§impl TryFrom<AttrVal> for LogicalTime
impl TryFrom<AttrVal> for LogicalTime
impl Eq for LogicalTime
impl StructuralPartialEq for LogicalTime
Auto Trait Implementations§
impl Freeze for LogicalTime
impl RefUnwindSafe for LogicalTime
impl Send for LogicalTime
impl Sync for LogicalTime
impl Unpin for LogicalTime
impl UnwindSafe for LogicalTime
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