Struct parquet::schema::types::BasicTypeInfo
source · pub struct BasicTypeInfo { /* private fields */ }
Expand description
Basic type info. This contains information such as the name of the type, the repetition level, the logical type and the kind of the type (group, primitive).
Implementations§
source§impl BasicTypeInfo
impl BasicTypeInfo
sourcepub fn has_repetition(&self) -> bool
pub fn has_repetition(&self) -> bool
Returns true
if type has repetition field set, false
otherwise.
This is mostly applied to group type, because primitive type always has
repetition set.
sourcepub fn repetition(&self) -> Repetition
pub fn repetition(&self) -> Repetition
Returns Repetition
value for the type.
sourcepub fn converted_type(&self) -> ConvertedType
pub fn converted_type(&self) -> ConvertedType
Returns ConvertedType
value for the type.
sourcepub fn logical_type(&self) -> Option<LogicalType>
pub fn logical_type(&self) -> Option<LogicalType>
Returns LogicalType
value for the type.
Trait Implementations§
source§impl Clone for BasicTypeInfo
impl Clone for BasicTypeInfo
source§fn clone(&self) -> BasicTypeInfo
fn clone(&self) -> BasicTypeInfo
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 BasicTypeInfo
impl Debug for BasicTypeInfo
source§impl PartialEq for BasicTypeInfo
impl PartialEq for BasicTypeInfo
impl Eq for BasicTypeInfo
impl StructuralPartialEq for BasicTypeInfo
Auto Trait Implementations§
impl Freeze for BasicTypeInfo
impl RefUnwindSafe for BasicTypeInfo
impl Send for BasicTypeInfo
impl Sync for BasicTypeInfo
impl Unpin for BasicTypeInfo
impl UnwindSafe for BasicTypeInfo
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)