Enum tantivy_columnar::DynamicColumn
source · pub enum DynamicColumn {
Bool(Column<bool>),
I64(Column<i64>),
U64(Column<u64>),
F64(Column<f64>),
IpAddr(Column<Ipv6Addr>),
DateTime(Column<DateTime>),
Bytes(BytesColumn),
Str(StrColumn),
}
Variants§
Bool(Column<bool>)
I64(Column<i64>)
U64(Column<u64>)
F64(Column<f64>)
IpAddr(Column<Ipv6Addr>)
DateTime(Column<DateTime>)
Bytes(BytesColumn)
Str(StrColumn)
Implementations§
source§impl DynamicColumn
impl DynamicColumn
pub fn column_index(&self) -> &ColumnIndex
pub fn get_cardinality(&self) -> Cardinality
pub fn num_values(&self) -> u32
pub fn column_type(&self) -> ColumnType
pub fn coerce_numerical( self, target_numerical_type: NumericalType ) -> Option<Self>
pub fn is_numerical(&self) -> bool
pub fn is_f64(&self) -> bool
pub fn is_i64(&self) -> bool
pub fn is_u64(&self) -> bool
Trait Implementations§
source§impl Clone for DynamicColumn
impl Clone for DynamicColumn
source§fn clone(&self) -> DynamicColumn
fn clone(&self) -> DynamicColumn
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 DynamicColumn
impl Debug for DynamicColumn
source§impl From<BytesColumn> for DynamicColumn
impl From<BytesColumn> for DynamicColumn
source§fn from(typed_column: BytesColumn) -> Self
fn from(typed_column: BytesColumn) -> Self
Converts to this type from the input type.
source§impl From<Column> for DynamicColumn
impl From<Column> for DynamicColumn
source§impl From<DynamicColumn> for Option<BytesColumn>
impl From<DynamicColumn> for Option<BytesColumn>
source§fn from(dynamic_column: DynamicColumn) -> Option<BytesColumn>
fn from(dynamic_column: DynamicColumn) -> Option<BytesColumn>
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DynamicColumn
impl !RefUnwindSafe for DynamicColumn
impl Send for DynamicColumn
impl Sync for DynamicColumn
impl Unpin for DynamicColumn
impl !UnwindSafe for DynamicColumn
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.