pub enum PgCube {
Point(f64),
ZeroVolume(Vec<f64>),
OneDimensionInterval(f64, f64),
MultiDimension(Vec<Vec<f64>>),
}Available on crate feature
postgres only.Variantsยง
Point(f64)
A one-dimensional point.
ZeroVolume(Vec<f64>)
An N-dimensional point (โrepresented internally as a zero-volume cubeโ).
OneDimensionInterval(f64, f64)
A one-dimensional interval with starting and ending points.
MultiDimension(Vec<Vec<f64>>)
An N-dimensional cube with points representing lower-left and upper-right corners, respectively.
Trait Implementationsยง
Sourceยงimpl Encode<'_, Postgres> for PgCube
impl Encode<'_, Postgres> for PgCube
Sourceยงimpl PgHasArrayType for PgCube
impl PgHasArrayType for PgCube
fn array_type_info() -> PgTypeInfo
fn array_compatible(ty: &PgTypeInfo) -> bool
impl StructuralPartialEq for PgCube
Auto Trait Implementationsยง
impl Freeze for PgCube
impl RefUnwindSafe for PgCube
impl Send for PgCube
impl Sync for PgCube
impl Unpin for PgCube
impl UnwindSafe for PgCube
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<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self> โ
fn into_either(self, into_left: bool) -> Either<Self, Self> โ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more