pub struct LogicalTime(/* private fields */);
Expand description
A segmented logical clock
Implementations§
Source§impl LogicalTime
impl LogicalTime
pub fn unary<A>(a: A) -> LogicalTime
pub fn binary<A, B>(a: A, b: B) -> LogicalTime
pub fn trinary<A, B, C>(a: A, b: B, c: C) -> LogicalTime
pub fn quaternary<A, B, C, D>(a: A, b: B, c: C, d: D) -> LogicalTime
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 duplicate 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§fn cmp(&self, other: &LogicalTime) -> Ordering
fn cmp(&self, other: &LogicalTime) -> 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 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
Source§type Error = WrongAttrTypeError
type Error = WrongAttrTypeError
The type returned in the event of a conversion error.
Source§fn try_from(
value: AttrVal,
) -> Result<LogicalTime, <LogicalTime as TryFrom<AttrVal>>::Error>
fn try_from( value: AttrVal, ) -> Result<LogicalTime, <LogicalTime as TryFrom<AttrVal>>::Error>
Performs the conversion.
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