pub enum TText {
Instant(TTextInstant),
Sequence(TTextSequence),
SequenceSet(TTextSequenceSet),
}Variants§
Trait Implementations§
Source§impl Collection for TText
impl Collection for TText
type Type = String
Source§fn contains(&self, content: &Self::Type) -> bool
fn contains(&self, content: &Self::Type) -> bool
Determines if the collection contains the specified item. Read more
Source§fn is_contained_in(&self, _: &Self) -> bool
fn is_contained_in(&self, _: &Self) -> bool
Source§fn is_over_or_left(&self, _: &Self) -> bool
fn is_over_or_left(&self, _: &Self) -> bool
Returns whether
self is before other allowing overlap. That is, self ends before other ends (or at the same time). Read moreSource§fn is_over_or_right(&self, _: &Self) -> bool
fn is_over_or_right(&self, _: &Self) -> bool
Returns whether
self is after other allowing overlap. That is, self starts after other starts (or at the same time). Read moreSource§fn is_adjacent(&self, _: &Self) -> bool
fn is_adjacent(&self, _: &Self) -> bool
Source§impl From<TTextInstant> for TText
impl From<TTextInstant> for TText
Source§fn from(value: TTextInstant) -> Self
fn from(value: TTextInstant) -> Self
Converts to this type from the input type.
Source§impl From<TTextSequence> for TText
impl From<TTextSequence> for TText
Source§fn from(value: TTextSequence) -> Self
fn from(value: TTextSequence) -> Self
Converts to this type from the input type.
Source§impl From<TTextSequenceSet> for TText
impl From<TTextSequenceSet> for TText
Source§fn from(value: TTextSequenceSet) -> Self
fn from(value: TTextSequenceSet) -> Self
Converts to this type from the input type.
Source§impl MeosEnum for TText
impl MeosEnum for TText
fn from_instant(inner: *mut TInstant) -> Self
fn from_sequence(inner: *mut TSequence) -> Self
fn from_sequence_set(inner: *mut TSequenceSet) -> Self
Source§fn from_mfjson(mfjson: &str) -> Self
fn from_mfjson(mfjson: &str) -> Self
Creates a temporal object from an MF-JSON string. Read more
Source§fn from_wkb(wkb: &[u8]) -> Self
fn from_wkb(wkb: &[u8]) -> Self
Creates a temporal object from Well-Known Binary (WKB) bytes. Read more
Source§fn from_hexwkb(hexwkb: &[u8]) -> Self
fn from_hexwkb(hexwkb: &[u8]) -> Self
Creates a temporal object from a hex-encoded WKB string. Read more
Source§fn from_merge(temporals: &[Self]) -> Self
fn from_merge(temporals: &[Self]) -> Self
Creates a temporal object by merging multiple temporal objects. Read more
Source§fn as_mfjson(
&self,
with_bbox: bool,
variant: JSONCVariant,
precision: i32,
srs: &str,
) -> String
fn as_mfjson( &self, with_bbox: bool, variant: JSONCVariant, precision: i32, srs: &str, ) -> String
Returns the temporal object as an MF-JSON string. Read more
Source§impl OrderedTemporal for TText
impl OrderedTemporal for TText
Source§fn temporal_greater_than_value(&self, other: &Self::Type) -> Self::TBoolType
fn temporal_greater_than_value(&self, other: &Self::Type) -> Self::TBoolType
Source§fn temporal_greater_or_equal_than_value(
&self,
other: &Self::Type,
) -> Self::TBoolType
fn temporal_greater_or_equal_than_value( &self, other: &Self::Type, ) -> Self::TBoolType
Returns a
TBool representing whether self is greater than or equal to the given value accross time. Read moreSource§fn temporal_lower_than_value(&self, other: &Self::Type) -> Self::TBoolType
fn temporal_lower_than_value(&self, other: &Self::Type) -> Self::TBoolType
Source§fn temporal_lower_or_equal_than_value(
&self,
other: &Self::Type,
) -> Self::TBoolType
fn temporal_lower_or_equal_than_value( &self, other: &Self::Type, ) -> Self::TBoolType
Returns a
TBool representing whether self is less than or equal to the given value accross time. Read moreSource§fn at_min(&self) -> Self
fn at_min(&self) -> Self
Returns a new temporal object containing the times
self is at its minimum value.Source§fn at_max(&self) -> Self
fn at_max(&self) -> Self
Returns a new temporal object containing the times
self is at its maximum value.Source§fn minus_min(&self) -> Self
fn minus_min(&self) -> Self
Returns a new temporal object containing the times
self is not at its minimum value.Source§fn minus_max(&self) -> Self
fn minus_max(&self) -> Self
Returns a new temporal object containing the times
self is not at its maximum value.Source§fn temporal_greater_than(&self, other: &Self) -> Self::TBoolType
fn temporal_greater_than(&self, other: &Self) -> Self::TBoolType
Source§fn temporal_greater_or_equal_than(&self, other: &Self) -> Self::TBoolType
fn temporal_greater_or_equal_than(&self, other: &Self) -> Self::TBoolType
Source§fn temporal_lower_than(&self, other: &Self) -> Self::TBoolType
fn temporal_lower_than(&self, other: &Self) -> Self::TBoolType
Source§fn temporal_lower_or_equal_than(&self, other: &Self) -> Self::TBoolType
fn temporal_lower_or_equal_than(&self, other: &Self) -> Self::TBoolType
Source§impl Temporal for TText
impl Temporal for TText
type TI = TTextInstant
type TS = TTextSequence
type TSS = TTextSequenceSet
type TBB = TsTzSpan
type Enum = TText
type TBoolType = TBool
fn from_inner_as_temporal(inner: *mut Temporal) -> Self
fn inner(&self) -> *const Temporal
Source§fn bounding_box(&self) -> Self::TBB
fn bounding_box(&self) -> Self::TBB
Returns the bounding box of the temporal object. Read more
Source§fn values(&self) -> Vec<Self::Type>
fn values(&self) -> Vec<Self::Type>
Returns the set of unique values in the temporal object. Read more
Source§fn start_value(&self) -> Self::Type
fn start_value(&self) -> Self::Type
Returns the starting value of the temporal object. Read more
Source§fn value_at_timestamp<Tz: TimeZone>(
&self,
timestamp: DateTime<Tz>,
) -> Option<Self::Type>
fn value_at_timestamp<Tz: TimeZone>( &self, timestamp: DateTime<Tz>, ) -> Option<Self::Type>
Returns the value of the temporal object at a specific timestamp. Read more
Source§fn at_value(&self, value: &Self::Type) -> Option<Self::Enum>
fn at_value(&self, value: &Self::Type) -> Option<Self::Enum>
Returns a new temporal object containing the times
self is at value.Source§fn at_values(&self, values: &[Self::Type]) -> Option<Self::Enum>
fn at_values(&self, values: &[Self::Type]) -> Option<Self::Enum>
Returns a new temporal object containing the times
self is in any of the values of values.Source§fn minus_value(&self, value: Self::Type) -> Self::Enum
fn minus_value(&self, value: Self::Type) -> Self::Enum
Returns a new temporal object containing the times
self is not at value.Source§fn minus_values(&self, values: &[Self::Type]) -> Self::Enum
fn minus_values(&self, values: &[Self::Type]) -> Self::Enum
Returns a new temporal object containing the times
self is not at values.Source§fn temporal_equal_value(&self, value: &Self::Type) -> Self::TBoolType
fn temporal_equal_value(&self, value: &Self::Type) -> Self::TBoolType
Source§fn temporal_not_equal_value(&self, value: &Self::Type) -> Self::TBoolType
fn temporal_not_equal_value(&self, value: &Self::Type) -> Self::TBoolType
Source§fn interpolation(&self) -> TInterpolation
fn interpolation(&self) -> TInterpolation
Returns the interpolation method of the temporal object. Read more
Source§fn time(&self) -> TsTzSpanSet
fn time(&self) -> TsTzSpanSet
Returns the time span on which the temporal object is defined. Read more
Source§fn timespan(&self) -> TsTzSpan
fn timespan(&self) -> TsTzSpan
Returns the time span on which the temporal object is defined. Read more
Source§fn duration(&self, ignore_gaps: bool) -> TimeDelta
fn duration(&self, ignore_gaps: bool) -> TimeDelta
Returns the duration of the temporal object. Read more
Source§fn num_instants(&self) -> i32
fn num_instants(&self) -> i32
Returns the number of instants in the temporal object. Read more
Source§fn start_instant(&self) -> Self::TI
fn start_instant(&self) -> Self::TI
Returns the first instant in the temporal object. Read more
Source§fn end_instant(&self) -> Self::TI
fn end_instant(&self) -> Self::TI
Returns the last instant in the temporal object. Read more
Source§fn min_instant(&self) -> Self::TI
fn min_instant(&self) -> Self::TI
Returns the instant with the minimum value in the temporal object. Read more
Source§fn max_instant(&self) -> Self::TI
fn max_instant(&self) -> Self::TI
Returns the instant with the maximum value in the temporal object. Read more
Source§fn instant_n(&self, n: i32) -> Option<Self::TI>
fn instant_n(&self, n: i32) -> Option<Self::TI>
Returns the n-th instant in the temporal object. Read more
Source§fn instants(&self) -> Vec<Self::TI>
fn instants(&self) -> Vec<Self::TI>
Returns the list of instants in the temporal object. Read more
Source§fn num_timestamps(&self) -> i32
fn num_timestamps(&self) -> i32
Returns the number of timestamps in the temporal object. Read more
Source§fn start_timestamp(&self) -> DateTime<Utc>
fn start_timestamp(&self) -> DateTime<Utc>
Returns the first timestamp in the temporal object. Read more
Source§fn end_timestamp(&self) -> DateTime<Utc>
fn end_timestamp(&self) -> DateTime<Utc>
Returns the last timestamp in the temporal object. Read more
Source§fn timestamp_n(&self, n: i32) -> Option<DateTime<Utc>>
fn timestamp_n(&self, n: i32) -> Option<DateTime<Utc>>
Returns the n-th timestamp in the temporal object. Read more
Source§fn timestamps(&self) -> Vec<DateTime<Utc>>
fn timestamps(&self) -> Vec<DateTime<Utc>>
Returns the list of timestamps in the temporal object. Read more
Source§fn segments(&self) -> Vec<Self::TS>
fn segments(&self) -> Vec<Self::TS>
Returns the list of segments in the temporal object. Read more
Source§fn set_interpolation(&self, interpolation: TInterpolation) -> Self
fn set_interpolation(&self, interpolation: TInterpolation) -> Self
Returns a new
Temporal object with the given interpolation.Source§fn shift_time(&self, delta: TimeDelta) -> Self
fn shift_time(&self, delta: TimeDelta) -> Self
Source§fn scale_time(&self, duration: TimeDelta) -> Self
fn scale_time(&self, duration: TimeDelta) -> Self
Source§fn shift_scale_time(
&self,
shift: Option<TimeDelta>,
duration: Option<TimeDelta>,
) -> Self
fn shift_scale_time( &self, shift: Option<TimeDelta>, duration: Option<TimeDelta>, ) -> Self
Returns a new
Temporal with the time dimension shifted and scaled. Read moreSource§fn temporal_sample<Tz: TimeZone>(
self,
duration: TimeDelta,
start: DateTime<Tz>,
interpolation: TInterpolation,
) -> Self
fn temporal_sample<Tz: TimeZone>( self, duration: TimeDelta, start: DateTime<Tz>, interpolation: TInterpolation, ) -> Self
Source§fn temporal_precision<Tz: TimeZone>(
self,
duration: TimeDelta,
start: DateTime<Tz>,
) -> Self
fn temporal_precision<Tz: TimeZone>( self, duration: TimeDelta, start: DateTime<Tz>, ) -> Self
Source§fn to_instant(&self) -> Self::TI
fn to_instant(&self) -> Self::TI
Converts
self into a TInstant.Source§fn to_sequence(&self, interpolation: TInterpolation) -> Self::TS
fn to_sequence(&self, interpolation: TInterpolation) -> Self::TS
Source§fn to_sequence_set(&self, interpolation: TInterpolation) -> Self::TSS
fn to_sequence_set(&self, interpolation: TInterpolation) -> Self::TSS
Source§fn append_instant(
self,
instant: Self::TI,
max_dist: Option<f64>,
max_time: Option<TimeDelta>,
) -> Self::Enum
fn append_instant( self, instant: Self::TI, max_dist: Option<f64>, max_time: Option<TimeDelta>, ) -> Self::Enum
Source§fn append_sequence(&self, sequence: Self::TS) -> Self::Enum
fn append_sequence(&self, sequence: Self::TS) -> Self::Enum
Source§fn delete_at_timestamp<Tz: TimeZone>(
&self,
other: DateTime<Tz>,
connect: bool,
) -> Self::Enum
fn delete_at_timestamp<Tz: TimeZone>( &self, other: DateTime<Tz>, connect: bool, ) -> Self::Enum
Source§fn delete_at_tstz_span_set(
&self,
time_span_set: TsTzSpanSet,
connect: bool,
) -> Self::Enum
fn delete_at_tstz_span_set( &self, time_span_set: TsTzSpanSet, connect: bool, ) -> Self::Enum
Source§fn at_timestamp<Tz: TimeZone>(&self, other: DateTime<Tz>) -> Self::TI
fn at_timestamp<Tz: TimeZone>(&self, other: DateTime<Tz>) -> Self::TI
Returns a new temporal object with values restricted to the time
other. Read moreSource§fn at_tstz_span(&self, time_span: TsTzSpan) -> Self
fn at_tstz_span(&self, time_span: TsTzSpan) -> Self
Returns a new temporal object with values restricted to the time
time_span. Read moreSource§fn at_tstz_span_set(&self, time_span_set: TsTzSpanSet) -> Self
fn at_tstz_span_set(&self, time_span_set: TsTzSpanSet) -> Self
Returns a new temporal object with values restricted to the time
time_span_set. Read moreSource§fn minus_timestamp<Tz: TimeZone>(&self, timestamp: DateTime<Tz>) -> Self::Enum
fn minus_timestamp<Tz: TimeZone>(&self, timestamp: DateTime<Tz>) -> Self::Enum
Returns a new temporal object with values at
timestamp removed. Read moreSource§fn minus_timestamp_set<Tz: TimeZone>(
&self,
timestamps: &[DateTime<Tz>],
) -> Self::Enum
fn minus_timestamp_set<Tz: TimeZone>( &self, timestamps: &[DateTime<Tz>], ) -> Self::Enum
Returns a new temporal object with values at any of the values of
timestamps removed. Read moreSource§fn minus_tstz_span(&self, time_span: TsTzSpan) -> Self::Enum
fn minus_tstz_span(&self, time_span: TsTzSpan) -> Self::Enum
Returns a new temporal object with values at
time_span removed. Read moreSource§fn minus_tstz_span_set(&self, time_span_set: TsTzSpanSet) -> Self::Enum
fn minus_tstz_span_set(&self, time_span_set: TsTzSpanSet) -> Self::Enum
Returns a new temporal object with values at
time_span_set removed. Read moreSource§fn is_adjacent(&self, other: Self::Enum) -> bool
fn is_adjacent(&self, other: Self::Enum) -> bool
Returns a
TBool representing whether the bounding box of self is adjacent to the bounding box of other accross time. Read moreSource§fn is_temporally_adjacent(&self, other: Self) -> bool
fn is_temporally_adjacent(&self, other: Self) -> bool
Returns a
TBool representing whether the bounding timespan of self is temporally adjacent to the bounding timespan of other accross time. Read moreSource§fn is_contained_in(&self, other: Self::Enum) -> bool
fn is_contained_in(&self, other: Self::Enum) -> bool
Returns a
TBool representing whether the bounding-box of self is contained in the bounding-box of container accross time. Read moreSource§fn is_temporally_contained_in(&self, other: Self) -> bool
fn is_temporally_contained_in(&self, other: Self) -> bool
Returns a
TBool representing whether the bounding timespan of self is contained in the bounding timespan of container accross time. Read moreSource§fn contains(&self, other: Self::Enum) -> bool
fn contains(&self, other: Self::Enum) -> bool
Returns a
TBool representing whether the bounding timespan of self contains the bounding timespan of other accross time. Read moreSource§fn temporally_contains(&self, other: Self) -> bool
fn temporally_contains(&self, other: Self) -> bool
Returns a
TBool representing whether the bounding timespan of self temporally contains the bounding timespan of other accross time. Read moreSource§fn overlaps(&self, other: Self) -> bool
fn overlaps(&self, other: Self) -> bool
Returns a
TBool representing whether the bounding timespan of self overlaps with the bounding timespan of other accross time. Read moreSource§fn temporally_overlaps(&self, other: Self) -> bool
fn temporally_overlaps(&self, other: Self) -> bool
Returns a
TBool representing whether the bounding timespan of self temporally overlaps with the bounding timespan of other accross time. Read moreSource§fn is_over_or_before(&self, other: Self::Enum) -> bool
fn is_over_or_before(&self, other: Self::Enum) -> bool
Source§fn is_over_or_after(&self, other: Self::Enum) -> bool
fn is_over_or_after(&self, other: Self::Enum) -> bool
Source§fn frechet_distance(&self, other: Self) -> f64
fn frechet_distance(&self, other: Self) -> f64
Source§fn dyntimewarp_distance(&self, other: Self) -> f64
fn dyntimewarp_distance(&self, other: Self) -> f64
Source§fn hausdorff_distance(&self, other: Self) -> f64
fn hausdorff_distance(&self, other: Self) -> f64
Source§fn time_split<Tz: TimeZone>(
&self,
duration: TimeDelta,
start: DateTime<Tz>,
) -> Vec<Self>
fn time_split<Tz: TimeZone>( &self, duration: TimeDelta, start: DateTime<Tz>, ) -> Vec<Self>
Splits the temporal object into multiple pieces based on the given duration. Read more
Source§fn time_split_n(&self, n: usize) -> Vec<Self>
fn time_split_n(&self, n: usize) -> Vec<Self>
Splits the temporal object into
n equal-duration parts. Read moreSource§fn stops(&self, max_distance: f64, min_duration: TimeDelta) -> Self::TSS
fn stops(&self, max_distance: f64, min_duration: TimeDelta) -> Self::TSS
Extracts the subsequences where the object stays within a certain distance for a specified duration. Read more
Source§fn always_equal(&self, other: &Self) -> Option<bool>
fn always_equal(&self, other: &Self) -> Option<bool>
Source§fn always_not_equal(&self, other: &Self) -> Option<bool>
fn always_not_equal(&self, other: &Self) -> Option<bool>
Source§fn ever_equal(&self, other: &Self) -> Option<bool>
fn ever_equal(&self, other: &Self) -> Option<bool>
Source§fn ever_not_equal(&self, other: &Self) -> Option<bool>
fn ever_not_equal(&self, other: &Self) -> Option<bool>
Source§fn temporal_equal(&self, other: &Self) -> Self::TBoolType
fn temporal_equal(&self, other: &Self) -> Self::TBoolType
Source§fn temporal_not_equal(&self, other: &Self) -> Self::TBoolType
fn temporal_not_equal(&self, other: &Self) -> Self::TBoolType
Source§impl TryFrom<TText> for TTextInstant
impl TryFrom<TText> for TTextInstant
Source§impl TryFrom<TText> for TTextSequence
impl TryFrom<TText> for TTextSequence
Auto Trait Implementations§
impl Freeze for TText
impl RefUnwindSafe for TText
impl !Send for TText
impl !Sync for TText
impl Unpin for TText
impl UnwindSafe for TText
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