Enum web_rwkv::tensor::shape::TensorDimension
source · pub enum TensorDimension {
Full,
Auto,
Dimension(usize),
}Variants§
Implementations§
Trait Implementations§
source§impl Clone for TensorDimension
impl Clone for TensorDimension
source§fn clone(&self) -> TensorDimension
fn clone(&self) -> TensorDimension
Returns a copy 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 TensorDimension
impl Debug for TensorDimension
source§impl Default for TensorDimension
impl Default for TensorDimension
source§fn default() -> TensorDimension
fn default() -> TensorDimension
Returns the “default value” for a type. Read more
source§impl Hash for TensorDimension
impl Hash for TensorDimension
source§impl PartialEq for TensorDimension
impl PartialEq for TensorDimension
source§fn eq(&self, other: &TensorDimension) -> bool
fn eq(&self, other: &TensorDimension) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for TensorDimension
impl Eq for TensorDimension
impl StructuralEq for TensorDimension
impl StructuralPartialEq for TensorDimension
Auto Trait Implementations§
impl RefUnwindSafe for TensorDimension
impl Send for TensorDimension
impl Sync for TensorDimension
impl Unpin for TensorDimension
impl UnwindSafe for TensorDimension
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more