Enum TText

Source
pub enum TText {
    Instant(TTextInstant),
    Sequence(TTextSequence),
    SequenceSet(TTextSequenceSet),
}

Variants§

§

Instant(TTextInstant)

§

Sequence(TTextSequence)

§

SequenceSet(TTextSequenceSet)

Trait Implementations§

Source§

impl AsRef<TText> for TText

Source§

fn as_ref(&self) -> &TText

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for TText

Source§

fn clone(&self) -> Self

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 Collection for TText

Source§

type Type = String

Source§

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

Returns whether self is contained in container. Read more
Source§

fn overlaps(&self, _: &Self) -> bool

Returns whether self overlaps other. That is, both share at least an element. Read more
Source§

fn is_left(&self, _: &Self) -> bool

Returns whether self is strictly before other. That is, self ends before other starts. Read more
Source§

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 more
Source§

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 more
Source§

fn is_right(&self, _: &Self) -> bool

Returns whether self is strictly after other. That is, self starts after other ends. Read more
Source§

fn is_adjacent(&self, _: &Self) -> bool

Returns whether self is adjacent to other. That is, self starts just after other ends. Read more
Source§

impl Debug for TText

Source§

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

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

impl From<TTextInstant> for TText

Source§

fn from(value: TTextInstant) -> Self

Converts to this type from the input type.
Source§

impl From<TTextSequence> for TText

Source§

fn from(value: TTextSequence) -> Self

Converts to this type from the input type.
Source§

impl From<TTextSequenceSet> for TText

Source§

fn from(value: TTextSequenceSet) -> Self

Converts to this type from the input type.
Source§

impl FromStr for TText

Source§

type Err = ParseError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for TText

Source§

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

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 MeosEnum for TText

Source§

fn from_instant(inner: *mut TInstant) -> Self

Source§

fn from_sequence(inner: *mut TSequence) -> Self

Source§

fn from_sequence_set(inner: *mut TSequenceSet) -> Self

Source§

fn from_mfjson(mfjson: &str) -> Self

Creates a temporal object from an MF-JSON string. Read more
Source§

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

Creates a temporal object from a hex-encoded WKB string. Read more
Source§

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

Returns the temporal object as an MF-JSON string. Read more
Source§

fn as_wkb(&self, variant: WKBVariant) -> &[u8]

Returns the temporal object as Well-Known Binary (WKB) bytes. Read more
Source§

fn as_hexwkb(&self, variant: WKBVariant) -> &[u8]

Returns the temporal object as a hex-encoded WKB string. Read more
Source§

impl OrderedTemporal for TText

Source§

fn min_value(&self) -> Self::Type

Returns the minimum value of the temporal object. Read more
Source§

fn max_value(&self) -> Self::Type

Returns the maximum value of the temporal object. Read more
Source§

fn always_less_than_value(&self, value: Self::Type) -> Option<bool>

Returns whether the values of self are always less than value. Read more
Source§

fn always_less_or_equal_than_value(&self, value: Self::Type) -> Option<bool>

Returns whether the values of self are always less than or equal to value. Read more
Source§

fn always_greater_or_equal_than_value(&self, value: Self::Type) -> Option<bool>

Returns whether the values of self are always greater than or equal to value. Read more
Source§

fn always_greater_than_value(&self, value: Self::Type) -> Option<bool>

Returns whether the values of self are always greater than value. Read more
Source§

fn ever_less_than_value(&self, value: Self::Type) -> Option<bool>

Returns whether the values of self are ever less than value. Read more
Source§

fn ever_less_or_equal_than_value(&self, value: Self::Type) -> Option<bool>

Returns whether the values of self are ever less than or equal to value. Read more
Source§

fn ever_greater_or_equal_than_value(&self, value: Self::Type) -> Option<bool>

Returns whether the values of self are ever greater than or equal to value. Read more
Source§

fn ever_greater_than_value(&self, value: Self::Type) -> Option<bool>

Returns whether the values of self are ever greater than value. Read more
Source§

fn temporal_greater_than_value(&self, other: &Self::Type) -> Self::TBoolType

Returns a TBool representing whether self is greater than the given value accross time. Read more
Source§

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 more
Source§

fn temporal_lower_than_value(&self, other: &Self::Type) -> Self::TBoolType

Returns a TBool representing whether self is less than the given value accross time. Read more
Source§

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 more
Source§

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

Returns a new temporal object containing the times self is at its maximum value.
Source§

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

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

Returns a TBool representing whether self is greater than other accross time. Read more
Source§

fn temporal_greater_or_equal_than(&self, other: &Self) -> Self::TBoolType

Returns a TBool representing whether self is greater than or equal to other accross time. Read more
Source§

fn temporal_lower_than(&self, other: &Self) -> Self::TBoolType

Returns a TBool representing whether self is less than other accross time. Read more
Source§

fn temporal_lower_or_equal_than(&self, other: &Self) -> Self::TBoolType

Returns a TBool representing whether self is less than or equal to other accross time. Read more
Source§

fn always_less(&self, other: &Self::Enum) -> Option<bool>

Returns whether the values of self are always less than other. Read more
Source§

fn always_less_or_equal(&self, other: &Self::Enum) -> Option<bool>

Returns whether the values of self are always less than or equal to other. Read more
Source§

fn always_greater_or_equal(&self, other: &Self::Enum) -> Option<bool>

Returns whether the values of self are always greater than or equal to other. Read more
Source§

fn always_greater(&self, other: &Self::Enum) -> Option<bool>

Returns whether the values of self are always greater than other. Read more
Source§

fn ever_less(&self, other: &Self::Enum) -> Option<bool>

Returns whether the values of self are ever less than other. Read more
Source§

fn ever_less_or_equal(&self, other: &Self::Enum) -> Option<bool>

Returns whether the values of self are ever less than or equal to other. Read more
Source§

fn ever_greater_or_equal(&self, other: &Self::Enum) -> Option<bool>

Returns whether the values of self are ever greater than or equal to other. Read more
Source§

fn ever_greater(&self, other: &Self::Enum) -> Option<bool>

Returns whether the values of self are ever greater than other. Read more
Source§

impl PartialEq for TText

Source§

fn eq(&self, other: &Self) -> 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 Temporal for TText

Source§

type TI = TTextInstant

Source§

type TS = TTextSequence

Source§

type TSS = TTextSequenceSet

Source§

type TBB = TsTzSpan

Source§

type Enum = TText

Source§

type TBoolType = TBool

Source§

fn always_equal_than_value(&self, value: Self::Type) -> Option<bool>

Returns whether the values of self are always equal to value. Read more
Source§

fn always_not_equal_than_value(&self, value: Self::Type) -> Option<bool>

Returns whether the values of self are always not equal to value. Read more
Source§

fn ever_equal_than_value(&self, value: Self::Type) -> Option<bool>

Returns whether the values of self are ever equal to value. Read more
Source§

fn ever_not_equal_than_value(&self, value: Self::Type) -> Option<bool>

Returns whether the values of self are ever not equal to value. Read more
Source§

fn from_inner_as_temporal(inner: *mut Temporal) -> Self

Source§

fn inner(&self) -> *const Temporal

Source§

fn bounding_box(&self) -> Self::TBB

Returns the bounding box of the temporal object. Read more
Source§

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

Returns the starting value of the temporal object. Read more
Source§

fn end_value(&self) -> Self::Type

Returns the ending value of the temporal object. Read more
Source§

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>

Returns a new temporal object containing the times self is at value.
Source§

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

Returns a new temporal object containing the times self is not at value.
Source§

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

Returns a TBool representing whether self is equal to the given value accross time. Read more
Source§

fn temporal_not_equal_value(&self, value: &Self::Type) -> Self::TBoolType

Returns a TBool representing whether self is not equal to the given value accross time. Read more
Source§

fn interpolation(&self) -> TInterpolation

Returns the interpolation method of the temporal object. Read more
Source§

fn time(&self) -> TsTzSpanSet

Returns the time span on which the temporal object is defined. Read more
Source§

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

Returns the duration of the temporal object. Read more
Source§

fn num_instants(&self) -> i32

Returns the number of instants in the temporal object. Read more
Source§

fn start_instant(&self) -> Self::TI

Returns the first instant in the temporal object. Read more
Source§

fn end_instant(&self) -> Self::TI

Returns the last instant in the temporal object. Read more
Source§

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

Returns the instant with the maximum value in the temporal object. Read more
Source§

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>

Returns the list of instants in the temporal object. Read more
Source§

fn num_timestamps(&self) -> i32

Returns the number of timestamps in the temporal object. Read more
Source§

fn start_timestamp(&self) -> DateTime<Utc>

Returns the first timestamp in the temporal object. Read more
Source§

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>>

Returns the n-th timestamp in the temporal object. Read more
Source§

fn timestamps(&self) -> Vec<DateTime<Utc>>

Returns the list of timestamps in the temporal object. Read more
Source§

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

Returns a new Temporal object with the given interpolation.
Source§

fn shift_time(&self, delta: TimeDelta) -> Self

Returns a new Temporal with the temporal dimension shifted by delta. Read more
Source§

fn scale_time(&self, duration: TimeDelta) -> Self

Returns a new Temporal scaled so the temporal dimension has duration duration. Read more
Source§

fn shift_scale_time( &self, shift: Option<TimeDelta>, duration: Option<TimeDelta>, ) -> Self

Returns a new Temporal with the time dimension shifted and scaled. Read more
Source§

fn temporal_sample<Tz: TimeZone>( self, duration: TimeDelta, start: DateTime<Tz>, interpolation: TInterpolation, ) -> Self

Returns a new Temporal downsampled with respect to duration. Read more
Source§

fn temporal_precision<Tz: TimeZone>( self, duration: TimeDelta, start: DateTime<Tz>, ) -> Self

Returns a new Temporal with precision reduced to duration. Read more
Source§

fn to_instant(&self) -> Self::TI

Converts self into a TInstant.
Source§

fn to_sequence(&self, interpolation: TInterpolation) -> Self::TS

Converts self into a TSequence. Read more
Source§

fn to_sequence_set(&self, interpolation: TInterpolation) -> Self::TSS

Converts self into a TSequenceSet. Read more
Source§

fn append_instant( self, instant: Self::TI, max_dist: Option<f64>, max_time: Option<TimeDelta>, ) -> Self::Enum

Appends instant to self. Read more
Source§

fn append_sequence(&self, sequence: Self::TS) -> Self::Enum

Appends sequence to self. Read more
Source§

fn merge_other(&self, other: Self::Enum) -> Self::Enum

Merges self with other. Read more
Source§

fn insert(&self, other: Self::Enum, connect: bool) -> Self::Enum

Inserts other into self. Read more
Source§

fn update(&self, other: Self::Enum, connect: bool) -> Self::Enum

Updates self with other. Read more
Source§

fn delete_at_timestamp<Tz: TimeZone>( &self, other: DateTime<Tz>, connect: bool, ) -> Self::Enum

Deletes elements from self at other. Read more
Source§

fn delete_at_tstz_span(&self, time_span: TsTzSpan, connect: bool) -> Self::Enum

Deletes elements from self at time_span. Read more
Source§

fn delete_at_tstz_span_set( &self, time_span_set: TsTzSpanSet, connect: bool, ) -> Self::Enum

Deletes elements from self at time_span_set. Read more
Source§

fn at_timestamp<Tz: TimeZone>(&self, other: DateTime<Tz>) -> Self::TI

Returns a new temporal object with values restricted to the time other. Read more
Source§

fn at_tstz_span(&self, time_span: TsTzSpan) -> Self

Returns a new temporal object with values restricted to the time time_span. Read more
Source§

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 more
Source§

fn minus_timestamp<Tz: TimeZone>(&self, timestamp: DateTime<Tz>) -> Self::Enum

Returns a new temporal object with values at timestamp removed. Read more
Source§

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 more
Source§

fn minus_tstz_span(&self, time_span: TsTzSpan) -> Self::Enum

Returns a new temporal object with values at time_span removed. Read more
Source§

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 more
Source§

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 more
Source§

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 more
Source§

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 more
Source§

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 more
Source§

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 more
Source§

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 more
Source§

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 more
Source§

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 more
Source§

fn is_before(&self, other: Self::Enum) -> bool

Returns whether self is before other. Read more
Source§

fn is_over_or_before(&self, other: Self::Enum) -> bool

Returns whether self is before other allowing overlap. Read more
Source§

fn is_after(&self, other: Self::Enum) -> bool

Returns whether self is after other. Read more
Source§

fn is_over_or_after(&self, other: Self::Enum) -> bool

Returns whether self is after other allowing overlap. Read more
Source§

fn frechet_distance(&self, other: Self) -> f64

Returns the Frechet distance between self and other. Read more
Source§

fn dyntimewarp_distance(&self, other: Self) -> f64

Returns the Dynamic Time Warp distance between self and other. Read more
Source§

fn hausdorff_distance(&self, other: Self) -> f64

Returns the Hausdorff distance between self and other. Read more
Source§

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>

Splits the temporal object into n equal-duration parts. Read more
Source§

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>

Returns whether the values of self are always equal to other. Read more
Source§

fn always_not_equal(&self, other: &Self) -> Option<bool>

Returns whether the values of self are always not equal to other. Read more
Source§

fn ever_equal(&self, other: &Self) -> Option<bool>

Returns whether the values of self are ever equal to other. Read more
Source§

fn ever_not_equal(&self, other: &Self) -> Option<bool>

Returns whether the values of self are ever not equal to other. Read more
Source§

fn temporal_equal(&self, other: &Self) -> Self::TBoolType

Returns a TBool representing whether self is equal to other accross time. Read more
Source§

fn temporal_not_equal(&self, other: &Self) -> Self::TBoolType

Returns a TBool representing whether self is not equal to other accross time. Read more
Source§

impl TryFrom<TText> for TTextInstant

Source§

type Error = ParseError

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

fn try_from(value: TText) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<TText> for TTextSequence

Source§

type Error = ParseError

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

fn try_from(value: TText) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<TText> for TTextSequenceSet

Source§

type Error = ParseError

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

fn try_from(value: TText) -> Result<Self, Self::Error>

Performs the conversion.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.