pub enum Boundaries<R: ReadAt> {
F32(GenericBoundaries<f32, R>),
F64(GenericBoundaries<f64, R>),
I64(GenericBoundaries<i64, R>),
Date(GenericBoundaries<NaiveDate, R>),
DateTime(GenericBoundaries<DateTime<Utc>, R>),
}
Expand description
Iterator for reading color data.
Casting is the same as Numbers
.
Variants§
F32(GenericBoundaries<f32, R>)
F64(GenericBoundaries<f64, R>)
I64(GenericBoundaries<i64, R>)
Date(GenericBoundaries<NaiveDate, R>)
DateTime(GenericBoundaries<DateTime<Utc>, R>)
Implementations§
Source§impl<R: ReadAt> Boundaries<R>
impl<R: ReadAt> Boundaries<R>
Sourcepub fn try_into_f64(self) -> Result<BoundariesF64<R>, Error>
pub fn try_into_f64(self) -> Result<BoundariesF64<R>, Error>
Turns this into an f64
boundary iterator, casting values.
If the numbers use type i64
this will fail with Error::UnsafeCast
. Dates will become
days since the ‘1970-01-01’ epoch. Date-times will become seconds since the
‘1970-01-01T00:00:00Z’ epoch with a small loss of precision.
Currently can’t fail but future number types might yield Error::UnsafeCast
.
Sourcepub fn try_into_i64(self) -> Result<BoundariesI64<R>, Error>
pub fn try_into_i64(self) -> Result<BoundariesI64<R>, Error>
Turns this into an i64
boundary iterator, casting values.
Floating-point types will be rejected with Error::UnsafeCast
. Dates will become
days since the ‘1970-01-01’ epoch. Date-times will become microseconds since the
‘1970-01-01T00:00:00Z’ epoch.
Trait Implementations§
Auto Trait Implementations§
impl<R> !Freeze for Boundaries<R>
impl<R> !RefUnwindSafe for Boundaries<R>
impl<R> Send for Boundaries<R>
impl<R> !Sync for Boundaries<R>
impl<R> Unpin for Boundaries<R>
impl<R> !UnwindSafe for Boundaries<R>
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