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>
👎Deprecated since 57.1.0: use BasicTypeInfo::logical_type_ref instead (LogicalType cloning is non trivial)
pub fn logical_type(&self) -> Option<LogicalType>
BasicTypeInfo::logical_type_ref instead (LogicalType cloning is non trivial)Returns LogicalType value for the type.
Note that this function will clone the LogicalType. If performance is a concern,
use Self::logical_type_ref instead.
Sourcepub fn logical_type_ref(&self) -> Option<&LogicalType>
pub fn logical_type_ref(&self) -> Option<&LogicalType>
Return a reference to the 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 duplicate 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