pub struct FixedShapeTensorMetadata { /* private fields */ }Expand description
Extension type metadata for FixedShapeTensor.
Implementations§
Source§impl FixedShapeTensorMetadata
impl FixedShapeTensorMetadata
Sourcepub fn try_new(
shape: impl IntoIterator<Item = usize>,
dimension_names: Option<Vec<String>>,
permutations: Option<Vec<usize>>,
) -> Result<Self, ArrowError>
Available on crate feature canonical_extension_types only.
pub fn try_new( shape: impl IntoIterator<Item = usize>, dimension_names: Option<Vec<String>>, permutations: Option<Vec<usize>>, ) -> Result<Self, ArrowError>
canonical_extension_types only.Returns metadata for a fixed shape tensor extension type.
§Error
Return an error if the provided dimension names or permutations are invalid.
Sourcepub fn list_size(&self) -> usize
Available on crate feature canonical_extension_types only.
pub fn list_size(&self) -> usize
canonical_extension_types only.Returns the product of all the elements in tensor shape.
Sourcepub fn dimensions(&self) -> usize
Available on crate feature canonical_extension_types only.
pub fn dimensions(&self) -> usize
canonical_extension_types only.Returns the number of dimensions in this fixed shape tensor.
Sourcepub fn dimension_names(&self) -> Option<&[String]>
Available on crate feature canonical_extension_types only.
pub fn dimension_names(&self) -> Option<&[String]>
canonical_extension_types only.Returns the names of the dimensions in this fixed shape tensor, if set.
Sourcepub fn permutations(&self) -> Option<&[usize]>
Available on crate feature canonical_extension_types only.
pub fn permutations(&self) -> Option<&[usize]>
canonical_extension_types only.Returns the indices of the desired ordering of the original dimensions, if set.
Trait Implementations§
Source§impl Clone for FixedShapeTensorMetadata
Available on crate feature canonical_extension_types only.
impl Clone for FixedShapeTensorMetadata
Available on crate feature
canonical_extension_types only.Source§fn clone(&self) -> FixedShapeTensorMetadata
fn clone(&self) -> FixedShapeTensorMetadata
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 FixedShapeTensorMetadata
Available on crate feature canonical_extension_types only.
impl Debug for FixedShapeTensorMetadata
Available on crate feature
canonical_extension_types only.Source§impl<'de> Deserialize<'de> for FixedShapeTensorMetadata
Available on crate feature canonical_extension_types only.
impl<'de> Deserialize<'de> for FixedShapeTensorMetadata
Available on crate feature
canonical_extension_types only.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 FixedShapeTensorMetadata
Available on crate feature canonical_extension_types only.
impl PartialEq for FixedShapeTensorMetadata
Available on crate feature
canonical_extension_types only.Source§impl Serialize for FixedShapeTensorMetadata
Available on crate feature canonical_extension_types only.
impl Serialize for FixedShapeTensorMetadata
Available on crate feature
canonical_extension_types only.impl StructuralPartialEq for FixedShapeTensorMetadata
Available on crate feature
canonical_extension_types only.Auto Trait Implementations§
impl Freeze for FixedShapeTensorMetadata
impl RefUnwindSafe for FixedShapeTensorMetadata
impl Send for FixedShapeTensorMetadata
impl Sync for FixedShapeTensorMetadata
impl Unpin for FixedShapeTensorMetadata
impl UnwindSafe for FixedShapeTensorMetadata
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