Enum geozero::ColumnValue

source ·
pub enum ColumnValue<'a> {
Show 15 variants Byte(i8), UByte(u8), Bool(bool), Short(i16), UShort(u16), Int(i32), UInt(u32), Long(i64), ULong(u64), Float(f32), Double(f64), String(&'a str), Json(&'a str), DateTime(&'a str), Binary(&'a [u8]),
}
Expand description

Feature property value.

Variants§

§

Byte(i8)

§

UByte(u8)

§

Bool(bool)

§

Short(i16)

§

UShort(u16)

§

Int(i32)

§

UInt(u32)

§

Long(i64)

§

ULong(u64)

§

Float(f32)

§

Double(f64)

§

String(&'a str)

§

Json(&'a str)

A JSON-formatted string

§

DateTime(&'a str)

A datetime stored as an ISO8601-formatted string

§

Binary(&'a [u8])

Trait Implementations§

source§

impl<'a> Debug for ColumnValue<'a>

source§

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

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

impl Display for ColumnValue<'_>

source§

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

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

impl From<&ColumnValue<'_>> for Result<String>

source§

fn from(v: &ColumnValue<'_>) -> Result<String>

Converts to this type from the input type.
source§

impl From<&ColumnValue<'_>> for Result<bool>

source§

fn from(v: &ColumnValue<'_>) -> Result<bool>

Converts to this type from the input type.
source§

impl From<&ColumnValue<'_>> for Result<f32>

source§

fn from(v: &ColumnValue<'_>) -> Result<f32>

Converts to this type from the input type.
source§

impl From<&ColumnValue<'_>> for Result<f64>

source§

fn from(v: &ColumnValue<'_>) -> Result<f64>

Converts to this type from the input type.
source§

impl From<&ColumnValue<'_>> for Result<i16>

source§

fn from(v: &ColumnValue<'_>) -> Result<i16>

Converts to this type from the input type.
source§

impl From<&ColumnValue<'_>> for Result<i32>

source§

fn from(v: &ColumnValue<'_>) -> Result<i32>

Converts to this type from the input type.
source§

impl From<&ColumnValue<'_>> for Result<i64>

source§

fn from(v: &ColumnValue<'_>) -> Result<i64>

Converts to this type from the input type.
source§

impl From<&ColumnValue<'_>> for Result<i8>

source§

fn from(v: &ColumnValue<'_>) -> Result<i8>

Converts to this type from the input type.
source§

impl From<&ColumnValue<'_>> for Result<u16>

source§

fn from(v: &ColumnValue<'_>) -> Result<u16>

Converts to this type from the input type.
source§

impl From<&ColumnValue<'_>> for Result<u32>

source§

fn from(v: &ColumnValue<'_>) -> Result<u32>

Converts to this type from the input type.
source§

impl From<&ColumnValue<'_>> for Result<u64>

source§

fn from(v: &ColumnValue<'_>) -> Result<u64>

Converts to this type from the input type.
source§

impl From<&ColumnValue<'_>> for Result<u8>

source§

fn from(v: &ColumnValue<'_>) -> Result<u8>

Converts to this type from the input type.
source§

impl<'a> PartialEq for ColumnValue<'a>

source§

fn eq(&self, other: &ColumnValue<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a> StructuralPartialEq for ColumnValue<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for ColumnValue<'a>

§

impl<'a> RefUnwindSafe for ColumnValue<'a>

§

impl<'a> Send for ColumnValue<'a>

§

impl<'a> Sync for ColumnValue<'a>

§

impl<'a> Unpin for ColumnValue<'a>

§

impl<'a> UnwindSafe for ColumnValue<'a>

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

source§

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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

impl<T> IntoSql for T

source§

fn into_sql<T>(self) -> Self::Expression

Convert self to an expression for Diesel’s query builder. Read more
source§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression

Convert &self to an expression for Diesel’s query builder. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

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

§

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.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more