pub struct Duration {
pub unit: TimeUnit,
}Expand description
The table Duration in the namespace org.apache.arrow.flatbuf
Generated from these locations:
- Table
Durationin the fileSchema.fbs:434
Fields§
§unit: TimeUnitThe field unit in the table Duration
Implementations§
Source§impl Duration
impl Duration
Sourcepub fn builder() -> DurationBuilder<()>
pub fn builder() -> DurationBuilder<()>
Creates a DurationBuilder for serializing an instance of this table.
pub fn create( builder: &mut Builder, field_unit: impl WriteAsDefault<TimeUnit, TimeUnit>, ) -> Offset<Self>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Duration
impl<'de> Deserialize<'de> for Duration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Duration
impl Ord for Duration
Source§impl PartialOrd for Duration
impl PartialOrd for Duration
Source§impl<'a> TryFrom<DurationRef<'a>> for Duration
impl<'a> TryFrom<DurationRef<'a>> for Duration
impl Eq for Duration
impl StructuralPartialEq for Duration
impl VectorWrite<Offset<Duration>> for Duration
§Safety
The planus compiler generates implementations that initialize
the bytes in write_values.
impl WriteAs<Offset<Duration>> for Duration
impl WriteAsOffset<Duration> for Duration
impl<T0: WriteAsDefault<TimeUnit, TimeUnit>> WriteAsOffset<Duration> for DurationBuilder<(T0,)>
impl WriteAsOptional<Offset<Duration>> for Duration
Auto Trait Implementations§
impl Freeze for Duration
impl RefUnwindSafe for Duration
impl Send for Duration
impl Sync for Duration
impl Unpin for Duration
impl UnwindSafe for Duration
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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