re_chunk_store

Type Alias IndexValue

Source
pub type IndexValue = TimeInt;

Aliased Type§

struct IndexValue(/* private fields */);

Implementations

Source§

impl TimeInt

Source

pub const STATIC: TimeInt = _

Special value used to represent static data.

It is illegal to create a TimeInt with that value in a temporal context.

SDK users cannot log data at that timestamp explicitly, the only way to do so is to use the static APIs.

Source

pub const MIN: TimeInt = _

Value used to represent the minimal temporal value a TimeInt can hold.

This is not i64::MIN, as that is a special value reserved as a marker for static data (see Self::STATIC).

Source

pub const MAX: TimeInt = _

Value used to represent the maximum temporal value a TimeInt can hold.

Source

pub const ZERO: TimeInt = _

Source

pub const ONE: TimeInt = _

Source

pub fn is_static(self) -> bool

Source

pub fn new_temporal(time: i64) -> TimeInt

Creates a new temporal TimeInt.

If time is i64::MIN, this will return TimeInt::MIN.

This can’t return TimeInt::STATIC, ever.

Source

pub fn from_nanos(nanos: NonMinI64) -> TimeInt

For time timelines.

Source

pub fn from_millis(millis: NonMinI64) -> TimeInt

For time timelines.

Source

pub fn from_secs(seconds: f64) -> TimeInt

For time timelines.

Source

pub fn from_sequence(sequence: NonMinI64) -> TimeInt

For sequence timelines.

Source

pub fn saturated_temporal_i64(value: impl Into<i64>) -> TimeInt

Clamp to valid non-static range.

Source

pub fn saturated_temporal(value: impl TryInto<TimeInt>) -> TimeInt

Clamp to valid non-static range.

Source

pub const fn as_i64(self) -> i64

Returns i64::MIN for Self::STATIC.

Source

pub const fn as_f64(self) -> f64

Returns f64::MIN for Self::STATIC.

Source

pub fn inc(self) -> TimeInt

Always returns Self::STATIC for Self::STATIC.

Source

pub fn dec(self) -> TimeInt

Always returns Self::STATIC for Self::STATIC.

Trait Implementations

Source§

impl Add<TimeReal> for TimeInt

Source§

type Output = TimeReal

The resulting type after applying the + operator.
Source§

fn add(self, rhs: TimeReal) -> <TimeInt as Add<TimeReal>>::Output

Performs the + operation. Read more
Source§

impl Add for TimeInt

Source§

type Output = TimeInt

The resulting type after applying the + operator.
Source§

fn add(self, rhs: TimeInt) -> <TimeInt as Add>::Output

Performs the + operation. Read more
Source§

impl Clone for TimeInt

Source§

fn clone(&self) -> TimeInt

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TimeInt

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TimeInt

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<TimeInt, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<Duration> for TimeInt

Source§

fn from(duration: Duration) -> TimeInt

Converts to this type from the input type.
Source§

impl From<NonMinI64> for TimeInt

Source§

fn from(seq: NonMinI64) -> TimeInt

Converts to this type from the input type.
Source§

impl From<TimeCell> for TimeInt

Source§

fn from(cell: TimeCell) -> TimeInt

Converts to this type from the input type.
Source§

impl From<TimeInt> for TimeInt

Source§

fn from(time: TimeInt) -> TimeInt

Converts to this type from the input type.
Source§

impl From<TimeInt> for TimeInt

Source§

fn from(value: TimeInt) -> TimeInt

Converts to this type from the input type.
Source§

impl From<Timestamp> for TimeInt

Source§

fn from(timestamp: Timestamp) -> TimeInt

Converts to this type from the input type.
Source§

impl Hash for TimeInt

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for TimeInt

Source§

fn cmp(&self, other: &TimeInt) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq<TimeReal> for TimeInt

Source§

fn eq(&self, other: &TimeReal) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq for TimeInt

Source§

fn eq(&self, other: &TimeInt) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd<TimeReal> for TimeInt

Source§

fn partial_cmp(&self, other: &TimeReal) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd for TimeInt

Source§

fn partial_cmp(&self, other: &TimeInt) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for TimeInt

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl SizeBytes for TimeInt

Source§

fn heap_size_bytes(&self) -> u64

Returns how many bytes self uses on the heap. Read more
Source§

fn total_size_bytes(&self) -> u64

Returns the total size of self in bytes, accounting for both stack and heap space.
Source§

fn stack_size_bytes(&self) -> u64

Returns the total size of self on the stack, in bytes. Read more
Source§

fn is_pod() -> bool

Is Self just plain old data? Read more
Source§

impl Sub<TimeReal> for TimeInt

Source§

type Output = TimeReal

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: TimeReal) -> <TimeInt as Sub<TimeReal>>::Output

Performs the - operation. Read more
Source§

impl Sub for TimeInt

Source§

type Output = TimeInt

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: TimeInt) -> <TimeInt as Sub>::Output

Performs the - operation. Read more
Source§

impl TryFrom<i64> for TimeInt

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(t: i64) -> Result<TimeInt, <TimeInt as TryFrom<i64>>::Error>

Performs the conversion.
Source§

impl Copy for TimeInt

Source§

impl Eq for TimeInt

Source§

impl StructuralPartialEq for TimeInt