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]
Source§impl LogicalTime
impl LogicalTime
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<'de> Deserialize<'de> for LogicalTime
impl<'de> Deserialize<'de> for LogicalTime
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 HasPyGilRef for LogicalTime
impl HasPyGilRef for LogicalTime
Source§type AsRefTarget = PyCell<LogicalTime>
type AsRefTarget = PyCell<LogicalTime>
Utility type to make Py::as_ref work.
Source§impl Hash for LogicalTime
impl Hash for LogicalTime
Source§impl JsonSchema for LogicalTime
impl JsonSchema for LogicalTime
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§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 PyClass for LogicalTime
impl PyClass for LogicalTime
Source§impl PyClassImpl for LogicalTime
impl PyClassImpl for LogicalTime
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
Source§type ThreadChecker = SendablePyClass<LogicalTime>
type ThreadChecker = SendablePyClass<LogicalTime>
This handles following two situations: Read more
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a LogicalTime
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a LogicalTime
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut LogicalTime
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut LogicalTime
Source§impl PyMethods<LogicalTime> for PyClassImplCollector<LogicalTime>
impl PyMethods<LogicalTime> for PyClassImplCollector<LogicalTime>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for LogicalTime
impl PyTypeInfo for LogicalTime
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
Source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
👎Deprecated since 0.21.0:
PyTypeInfo::type_object will be replaced by PyTypeInfo::type_object_bound in a future PyO3 versionReturns the safe abstraction over the type object.
Source§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
Source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
👎Deprecated since 0.21.0:
PyTypeInfo::is_type_of will be replaced by PyTypeInfo::is_type_of_bound in a future PyO3 versionChecks if
object is an instance of this type or a subclass of this type.Source§fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
Checks if
object is an instance of this type or a subclass of this type.Source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
👎Deprecated since 0.21.0:
PyTypeInfo::is_exact_type_of will be replaced by PyTypeInfo::is_exact_type_of_bound in a future PyO3 versionChecks if
object is an instance of this type.Source§impl Serialize for LogicalTime
impl Serialize for LogicalTime
Source§impl TryFrom<AttrVal> for LogicalTime
impl TryFrom<AttrVal> for LogicalTime
impl DerefToPyAny 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.