pub struct CsrMatrixExtension { /* private fields */ }Expand description
ndarrow.csr_matrix extension type.
Implementations§
Trait Implementations§
Source§impl Clone for CsrMatrixExtension
impl Clone for CsrMatrixExtension
Source§fn clone(&self) -> CsrMatrixExtension
fn clone(&self) -> CsrMatrixExtension
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 CsrMatrixExtension
impl Debug for CsrMatrixExtension
Source§impl ExtensionType for CsrMatrixExtension
impl ExtensionType for CsrMatrixExtension
Source§const NAME: &'static str = "ndarrow.csr_matrix"
const NAME: &'static str = "ndarrow.csr_matrix"
The name identifying this extension type. Read more
Source§type Metadata = CsrMatrixMetadata
type Metadata = CsrMatrixMetadata
The metadata type of 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 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 PartialEq for CsrMatrixExtension
impl PartialEq for CsrMatrixExtension
impl StructuralPartialEq for CsrMatrixExtension
Auto Trait Implementations§
impl Freeze for CsrMatrixExtension
impl RefUnwindSafe for CsrMatrixExtension
impl Send for CsrMatrixExtension
impl Sync for CsrMatrixExtension
impl Unpin for CsrMatrixExtension
impl UnsafeUnpin for CsrMatrixExtension
impl UnwindSafe for CsrMatrixExtension
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