pub struct Column { /* private fields */ }Expand description
One immutable column in a Schema.
Implementations§
Source§impl Column
impl Column
Sourcepub fn new(
id: u32,
name: impl Into<String>,
logical_type: LogicalType,
nullable: bool,
) -> Self
pub fn new( id: u32, name: impl Into<String>, logical_type: LogicalType, nullable: bool, ) -> Self
Construct a column descriptor.
The writer checks the complete schema invariants, including nonzero unique IDs, unique names, and primary-column compatibility, before it creates a file.
Sourcepub fn logical_type(&self) -> &LogicalType
pub fn logical_type(&self) -> &LogicalType
The column’s logical type.
Sourcepub fn is_nullable(&self) -> bool
pub fn is_nullable(&self) -> bool
Whether the column may contain null values.
Trait Implementations§
impl Eq for Column
impl StructuralPartialEq for Column
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnsafeUnpin for Column
impl UnwindSafe for Column
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