pub struct BasicTypeInfo {
name: String,
repetition: Option<Repetition>,
converted_type: ConvertedType,
logical_type: Option<LogicalType>,
id: Option<i32>,
}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).
Fields§
§name: String§repetition: Option<Repetition>§converted_type: ConvertedType§logical_type: Option<LogicalType>§id: Option<i32>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 HeapSize for BasicTypeInfo
impl HeapSize 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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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