pub struct Tuid { /* private fields */ }Implementations§
source§impl Tuid
impl Tuid
pub fn random() -> Self
pub fn as_u128(&self) -> u128
sourcepub fn next(&self) -> Self
pub fn next(&self) -> Self
Returns the next logical Tuid.
Wraps the monotonically increasing back to zero on overflow.
Beware: wrong usage can easily lead to conflicts.
Prefer Tuid::random when unsure.
pub fn nanoseconds_since_epoch(&self) -> u64
sourcepub fn short_string(&self) -> String
pub fn short_string(&self) -> String
A shortened string representation of the Tuid.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Tuid
impl<'de> Deserialize<'de> for Tuid
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 Loggable for Tuid
impl Loggable for Tuid
type Name = ComponentName
source§fn name() -> Self::Name
fn name() -> Self::Name
The fully-qualified name of this loggable, e.g.
rerun.datatypes.Vec2D.source§fn arrow_datatype() -> DataType
fn arrow_datatype() -> DataType
The underlying
arrow2::datatypes::DataType, excluding datatype extensions.source§fn to_arrow_opt<'a>(
_data: impl IntoIterator<Item = Option<impl Into<Cow<'a, Self>>>>
) -> SerializationResult<Box<dyn Array>>where
Self: 'a,
fn to_arrow_opt<'a>(
_data: impl IntoIterator<Item = Option<impl Into<Cow<'a, Self>>>>
) -> SerializationResult<Box<dyn Array>>where
Self: 'a,
Given an iterator of options of owned or reference values to the current
Loggable, serializes them into an Arrow array.
The Arrow array’s datatype will match Loggable::arrow_field. Read moresource§fn to_arrow<'a>(
data: impl IntoIterator<Item = impl Into<Cow<'a, Self>>>
) -> SerializationResult<Box<dyn Array>>where
Self: 'a,
fn to_arrow<'a>(
data: impl IntoIterator<Item = impl Into<Cow<'a, Self>>>
) -> SerializationResult<Box<dyn Array>>where
Self: 'a,
Given an iterator of owned or reference values to the current
Loggable, serializes
them into an Arrow array.
The Arrow array’s datatype will match Loggable::arrow_field. Read moresource§fn from_arrow(array: &dyn Array) -> DeserializationResult<Vec<Self>>
fn from_arrow(array: &dyn Array) -> DeserializationResult<Vec<Self>>
source§fn extended_arrow_datatype() -> DataType
fn extended_arrow_datatype() -> DataType
The underlying
arrow2::datatypes::DataType, including datatype extensions. Read moresource§fn arrow_field() -> Field
fn arrow_field() -> Field
The underlying
arrow2::datatypes::Field, including datatype extensions. Read moresource§fn from_arrow_opt(
data: &(dyn Array + 'static)
) -> Result<Vec<Option<Self>>, DeserializationError>
fn from_arrow_opt( data: &(dyn Array + 'static) ) -> Result<Vec<Option<Self>>, DeserializationError>
source§impl Ord for Tuid
impl Ord for Tuid
source§impl PartialEq for Tuid
impl PartialEq for Tuid
source§impl PartialOrd for Tuid
impl PartialOrd for Tuid
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 moreimpl Copy for Tuid
impl Eq for Tuid
impl StructuralEq for Tuid
impl StructuralPartialEq for Tuid
Auto Trait Implementations§
impl RefUnwindSafe for Tuid
impl Send for Tuid
impl Sync for Tuid
impl Unpin for Tuid
impl UnwindSafe for Tuid
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<L> LoggableBatch for L
impl<L> LoggableBatch for L
type Name = <L as Loggable>::Name
source§fn name(&self) -> <L as LoggableBatch>::Name
fn name(&self) -> <L as LoggableBatch>::Name
The fully-qualified name of this batch, e.g.
rerun.datatypes.Vec2D.source§fn num_instances(&self) -> usize
fn num_instances(&self) -> usize
The number of component instances stored into this batch.
source§fn arrow_field(&self) -> Field
fn arrow_field(&self) -> Field
The underlying
arrow2::datatypes::Field, including datatype extensions.