pub struct QuadbinType { /* private fields */ }Implementations§
Source§impl QuadbinType
impl QuadbinType
Sourcepub fn with_metadata(self, metadata: Arc<Metadata>) -> Self
pub fn with_metadata(self, metadata: Arc<Metadata>) -> Self
Change the underlying Metadata
pub fn to_data_type(&self) -> DataType
pub fn to_field<N: Into<String>>(&self, name: N, nullable: bool) -> Field
pub fn from_extension_field(field: &Field) -> QuadbinArrowResult<Self>
pub fn from_arrow_field(field: &Field) -> QuadbinArrowResult<Self>
Trait Implementations§
Source§impl Clone for QuadbinType
impl Clone for QuadbinType
Source§fn clone(&self) -> QuadbinType
fn clone(&self) -> QuadbinType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QuadbinType
impl Debug for QuadbinType
Source§impl Default for QuadbinType
impl Default for QuadbinType
Source§fn default() -> QuadbinType
fn default() -> QuadbinType
Returns the “default value” for a type. Read more
impl Eq for QuadbinType
Source§impl ExtensionType for QuadbinType
impl ExtensionType for QuadbinType
Source§const NAME: &'static str = "rasterarrow.quadbin"
const NAME: &'static str = "rasterarrow.quadbin"
The name identifying this extension type. Read more
Source§fn metadata(&self) -> &Self::Metadata
fn metadata(&self) -> &Self::Metadata
Returns a reference to the metadata of this extension type, or
&() if
if this extension type defines no metadata (Self::Metadata=()).Source§fn serialize_metadata(&self) -> Option<String>
fn serialize_metadata(&self) -> Option<String>
Returns the serialized representation of the metadata of this extension
type, or
None if this extension type defines no metadata
(Self::Metadata=()). Read moreSource§fn deserialize_metadata(
metadata: Option<&str>,
) -> Result<Self::Metadata, ArrowError>
fn deserialize_metadata( metadata: Option<&str>, ) -> Result<Self::Metadata, ArrowError>
Deserialize the metadata of this extension type from the serialized
representation of the metadata. An extension type that defines no
metadata should expect
None for the serialized metadata and return
Ok(()). Read moreSource§fn supports_data_type(&self, data_type: &DataType) -> Result<(), ArrowError>
fn supports_data_type(&self, data_type: &DataType) -> Result<(), ArrowError>
Returns
Ok(()) iff the given data type is supported by this extension
type.Source§fn try_new(
data_type: &DataType,
metadata: Self::Metadata,
) -> Result<Self, ArrowError>
fn try_new( data_type: &DataType, metadata: Self::Metadata, ) -> Result<Self, ArrowError>
Construct this extension type for a field with the given data type and
metadata. Read more
Source§fn validate(
data_type: &DataType,
metadata: Self::Metadata,
) -> Result<(), ArrowError>
fn validate( data_type: &DataType, metadata: Self::Metadata, ) -> Result<(), ArrowError>
Validate this extension type for a field with the given data type and
metadata. Read more
Source§fn try_new_from_field_metadata(
data_type: &DataType,
metadata: &HashMap<String, String>,
) -> Result<Self, ArrowError>
fn try_new_from_field_metadata( data_type: &DataType, metadata: &HashMap<String, String>, ) -> Result<Self, ArrowError>
Construct this extension type from field metadata and data type. Read more
Source§impl From<QuadbinType> for DataType
impl From<QuadbinType> for DataType
Source§fn from(value: QuadbinType) -> Self
fn from(value: QuadbinType) -> Self
Converts to this type from the input type.
Source§impl Hash for QuadbinType
impl Hash for QuadbinType
Source§impl PartialEq for QuadbinType
impl PartialEq for QuadbinType
impl StructuralPartialEq for QuadbinType
Source§impl TryFrom<&Field> for QuadbinType
impl TryFrom<&Field> for QuadbinType
Source§type Error = QuadbinArrowError
type Error = QuadbinArrowError
The type returned in the event of a conversion error.
Source§fn try_from(field: &Field) -> QuadbinArrowResult<Self>
fn try_from(field: &Field) -> QuadbinArrowResult<Self>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for QuadbinType
impl RefUnwindSafe for QuadbinType
impl Send for QuadbinType
impl Sync for QuadbinType
impl Unpin for QuadbinType
impl UnsafeUnpin for QuadbinType
impl UnwindSafe for QuadbinType
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