pub struct SparseDType {
pub value_dtype: DType,
pub fill_value: Scalar,
}Fields§
§value_dtype: DType§fill_value: ScalarImplementations§
Source§impl SparseDType
impl SparseDType
Sourcepub fn new(value_dtype: DType, fill_value: Scalar) -> Result<Self, TypeError>
pub fn new(value_dtype: DType, fill_value: Scalar) -> Result<Self, TypeError>
Construct a pandas-style sparse dtype descriptor.
This records the logical dense value dtype plus the scalar value that is elided from storage. The concrete sparse column representation lives in fp-columnar; this descriptor is the shared public contract.
Trait Implementations§
Source§impl Clone for SparseDType
impl Clone for SparseDType
Source§fn clone(&self) -> SparseDType
fn clone(&self) -> SparseDType
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 SparseDType
impl Debug for SparseDType
Source§impl<'de> Deserialize<'de> for SparseDType
impl<'de> Deserialize<'de> for SparseDType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SparseDType
impl PartialEq for SparseDType
Source§fn eq(&self, other: &SparseDType) -> bool
fn eq(&self, other: &SparseDType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SparseDType
impl Serialize for SparseDType
impl StructuralPartialEq for SparseDType
Auto Trait Implementations§
impl Freeze for SparseDType
impl RefUnwindSafe for SparseDType
impl Send for SparseDType
impl Sync for SparseDType
impl Unpin for SparseDType
impl UnsafeUnpin for SparseDType
impl UnwindSafe for SparseDType
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