#[repr(C)]pub enum TensorType {
Scalar = 0,
Tensor = 1,
}
Expand description
Auto-generated discriminant enum variants
Variants§
Implementations§
Source§impl TensorType
impl TensorType
Trait Implementations§
Source§impl Clone for TensorType
impl Clone for TensorType
Source§fn clone(&self) -> TensorType
fn clone(&self) -> TensorType
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 TensorType
impl Debug for TensorType
Source§impl<'de> Deserialize<'de> for TensorType
impl<'de> Deserialize<'de> for TensorType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TensorType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TensorType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TensorType
impl Display for TensorType
Source§impl<'_enum, T> From<&'_enum Tensors<T>> for TensorType
impl<'_enum, T> From<&'_enum Tensors<T>> for TensorType
Source§fn from(val: &'_enum Tensors<T>) -> TensorType
fn from(val: &'_enum Tensors<T>) -> TensorType
Converts to this type from the input type.
Source§impl<T> From<Tensors<T>> for TensorType
impl<T> From<Tensors<T>> for TensorType
Source§fn from(val: Tensors<T>) -> TensorType
fn from(val: Tensors<T>) -> TensorType
Converts to this type from the input type.
Source§impl FromStr for TensorType
impl FromStr for TensorType
Source§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<TensorType, <TensorType as FromStr>::Err>
fn from_str(s: &str) -> Result<TensorType, <TensorType as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreSource§impl Hash for TensorType
impl Hash for TensorType
Source§impl IntoEnumIterator for TensorType
impl IntoEnumIterator for TensorType
type Iterator = TensorTypeIter
fn iter() -> TensorTypeIter ⓘ
Source§impl Ord for TensorType
impl Ord for TensorType
Source§fn cmp(&self, other: &TensorType) -> Ordering
fn cmp(&self, other: &TensorType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TensorType
impl PartialEq for TensorType
Source§impl PartialOrd for TensorType
impl PartialOrd for TensorType
Source§impl Serialize for TensorType
impl Serialize for TensorType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&str> for TensorType
impl TryFrom<&str> for TensorType
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(s: &str) -> Result<TensorType, <TensorType as TryFrom<&str>>::Error>
fn try_from(s: &str) -> Result<TensorType, <TensorType as TryFrom<&str>>::Error>
Performs the conversion.
Source§impl VariantNames for TensorType
impl VariantNames for TensorType
impl Copy for TensorType
impl Eq for TensorType
impl StructuralPartialEq for TensorType
Auto Trait Implementations§
impl Freeze for TensorType
impl RefUnwindSafe for TensorType
impl Send for TensorType
impl Sync for TensorType
impl Unpin for TensorType
impl UnwindSafe for TensorType
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.