Enum gdal::vector::FieldValue
source · pub enum FieldValue {
IntegerValue(i32),
IntegerListValue(Vec<i32>),
Integer64Value(i64),
Integer64ListValue(Vec<i64>),
StringValue(String),
StringListValue(Vec<String>),
RealValue(f64),
RealListValue(Vec<f64>),
DateValue(NaiveDate),
DateTimeValue(DateTime<FixedOffset>),
}
Variants§
IntegerValue(i32)
IntegerListValue(Vec<i32>)
Integer64Value(i64)
Integer64ListValue(Vec<i64>)
StringValue(String)
StringListValue(Vec<String>)
RealValue(f64)
RealListValue(Vec<f64>)
DateValue(NaiveDate)
DateTimeValue(DateTime<FixedOffset>)
Implementations§
source§impl FieldValue
impl FieldValue
sourcepub fn into_string(self) -> Option<String>
pub fn into_string(self) -> Option<String>
Interpret the value as String
. Returns None
if the value is something else.
sourcepub fn into_real(self) -> Option<f64>
pub fn into_real(self) -> Option<f64>
Interpret the value as f64
. Returns None
if the value is something else.
sourcepub fn into_int(self) -> Option<i32>
pub fn into_int(self) -> Option<i32>
Interpret the value as i32
. Returns None
if the value is something else.
sourcepub fn into_int64(self) -> Option<i64>
pub fn into_int64(self) -> Option<i64>
Interpret the value as i64
. Returns None
if the value is something else.
sourcepub fn into_date(self) -> Option<NaiveDate>
pub fn into_date(self) -> Option<NaiveDate>
Interpret the value as NaiveDate
. Returns None
if the value is something else.
sourcepub fn into_datetime(self) -> Option<DateTime<FixedOffset>>
pub fn into_datetime(self) -> Option<DateTime<FixedOffset>>
Interpret the value as DateTime
. Returns None
if the value is something else.
pub fn ogr_field_type(&self) -> Type
Trait Implementations§
source§impl Clone for FieldValue
impl Clone for FieldValue
source§fn clone(&self) -> FieldValue
fn clone(&self) -> FieldValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FieldValue
impl Debug for FieldValue
source§impl PartialEq<FieldValue> for FieldValue
impl PartialEq<FieldValue> for FieldValue
source§fn eq(&self, other: &FieldValue) -> bool
fn eq(&self, other: &FieldValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FieldValue
Auto Trait Implementations§
impl RefUnwindSafe for FieldValue
impl Send for FieldValue
impl Sync for FieldValue
impl Unpin for FieldValue
impl UnwindSafe for FieldValue
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