pub struct Bool8;
Expand description
The extension type for 8-bit Boolean
.
Extension name: arrow.bool8
.
The storage type of the extension is Int8
where:
- false is denoted by the value 0.
- true can be specified using any non-zero value. Preferably 1.
https://arrow.apache.org/docs/format/CanonicalExtensions.html#bit-boolean
Trait Implementations§
Source§impl ExtensionType for Bool8
impl ExtensionType for Bool8
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§impl From<Bool8> for CanonicalExtensionType
impl From<Bool8> for CanonicalExtensionType
impl Copy for Bool8
impl StructuralPartialEq for Bool8
Auto Trait Implementations§
impl Freeze for Bool8
impl RefUnwindSafe for Bool8
impl Send for Bool8
impl Sync for Bool8
impl Unpin for Bool8
impl UnwindSafe for Bool8
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