pub struct DynRank;Expand description
Dynamic tensor rank marker.
§Examples
use tenferro_tensor_core::{DynRank, TensorRank};
assert_eq!(DynRank::RANK, None);Trait Implementations§
Source§impl TensorRank for DynRank
impl TensorRank for DynRank
Source§fn shape_from_vec(shape: ShapeVec) -> Result<Self::Shape>
fn shape_from_vec(shape: ShapeVec) -> Result<Self::Shape>
Convert a dynamic shape vector into this rank’s shape representation. Read more
Source§fn shape_into_vec(shape: Self::Shape) -> ShapeVec
fn shape_into_vec(shape: Self::Shape) -> ShapeVec
Convert this rank’s shape representation into a dynamic shape vector. Read more
impl Copy for DynRank
impl Eq for DynRank
impl StructuralPartialEq for DynRank
Auto Trait Implementations§
impl Freeze for DynRank
impl RefUnwindSafe for DynRank
impl Send for DynRank
impl Sync for DynRank
impl Unpin for DynRank
impl UnsafeUnpin for DynRank
impl UnwindSafe for DynRank
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