Struct duckdb_extension_framework::LogicalType
source · pub struct LogicalType { /* private fields */ }Implementations
sourceimpl LogicalType
impl LogicalType
pub fn new(typ: LogicalTypeId) -> Self
sourcepub fn new_map_type(key: &LogicalType, value: &LogicalType) -> Self
pub fn new_map_type(key: &LogicalType, value: &LogicalType) -> Self
Creates a map type from its key type and value type.
Arguments
type: The key type and value type of map type to create.returns: The logical type.
sourcepub fn new_list_type(child_type: &LogicalType) -> Self
pub fn new_list_type(child_type: &LogicalType) -> Self
Creates a list type from its child type.
Arguments
type: The child type of list type to create.returns: The logical type.
pub fn new_struct_type(_names: &[&str], _types: &[&LogicalType]) -> Self
sourcepub fn type_id(&self) -> LogicalTypeId
pub fn type_id(&self) -> LogicalTypeId
Trait Implementations
sourceimpl Clone for LogicalType
impl Clone for LogicalType
sourceimpl Debug for LogicalType
impl Debug for LogicalType
sourceimpl Drop for LogicalType
impl Drop for LogicalType
sourceimpl From<*mut c_void> for LogicalType
impl From<*mut c_void> for LogicalType
sourcefn from(ptr: duckdb_logical_type) -> Self
fn from(ptr: duckdb_logical_type) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for LogicalType
impl !Send for LogicalType
impl !Sync for LogicalType
impl Unpin for LogicalType
impl UnwindSafe for LogicalType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more