Struct TensorAxis
pub struct TensorAxis(/* private fields */);Implementations§
§impl TensorAxis
impl TensorAxis
pub fn new( value: usize, rank: TensorRank, ) -> Result<TensorAxis, TensorShapeError>
pub const fn unchecked(value: usize) -> TensorAxis
pub const fn index(self) -> usize
Trait Implementations§
§impl Clone for TensorAxis
impl Clone for TensorAxis
§fn clone(&self) -> TensorAxis
fn clone(&self) -> TensorAxis
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 more§impl Debug for TensorAxis
impl Debug for TensorAxis
§impl Hash for TensorAxis
impl Hash for TensorAxis
§impl Ord for TensorAxis
impl Ord for TensorAxis
§impl PartialEq for TensorAxis
impl PartialEq for TensorAxis
§impl PartialOrd for TensorAxis
impl PartialOrd for TensorAxis
impl Copy for TensorAxis
impl Eq for TensorAxis
impl StructuralPartialEq for TensorAxis
Auto Trait Implementations§
impl Freeze for TensorAxis
impl RefUnwindSafe for TensorAxis
impl Send for TensorAxis
impl Sync for TensorAxis
impl Unpin for TensorAxis
impl UnsafeUnpin for TensorAxis
impl UnwindSafe for TensorAxis
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