#[repr(C)]pub enum ReshapeOp {
Broadcast = 0,
Reshape = 1,
Swap = 2,
SwapAxis = 3,
Transpose = 4,
}
Expand description
Auto-generated discriminant enum variants
Variants§
Implementations§
Source§impl ReshapeOp
impl ReshapeOp
Sourcepub const fn is_broadcast(&self) -> bool
pub const fn is_broadcast(&self) -> bool
Returns true if the enum is ReshapeOp::Broadcast otherwise false
Sourcepub const fn is_reshape(&self) -> bool
pub const fn is_reshape(&self) -> bool
Returns true if the enum is ReshapeOp::Reshape otherwise false
Sourcepub const fn is_swap(&self) -> bool
pub const fn is_swap(&self) -> bool
Returns true if the enum is ReshapeOp::Swap otherwise false
Sourcepub const fn is_swap_axis(&self) -> bool
pub const fn is_swap_axis(&self) -> bool
Returns true if the enum is ReshapeOp::SwapAxis otherwise false
Sourcepub const fn is_transpose(&self) -> bool
pub const fn is_transpose(&self) -> bool
Returns true if the enum is ReshapeOp::Transpose otherwise false
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ReshapeOp
impl<'de> Deserialize<'de> for ReshapeOp
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReshapeOp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReshapeOp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'_enum, T> From<&'_enum ReshapeExpr<T>> for ReshapeOp
impl<'_enum, T> From<&'_enum ReshapeExpr<T>> for ReshapeOp
Source§fn from(val: &'_enum ReshapeExpr<T>) -> ReshapeOp
fn from(val: &'_enum ReshapeExpr<T>) -> ReshapeOp
Converts to this type from the input type.
Source§impl<T> From<ReshapeExpr<T>> for ReshapeOp
impl<T> From<ReshapeExpr<T>> for ReshapeOp
Source§fn from(val: ReshapeExpr<T>) -> ReshapeOp
fn from(val: ReshapeExpr<T>) -> ReshapeOp
Converts to this type from the input type.
Source§impl IntoEnumIterator for ReshapeOp
impl IntoEnumIterator for ReshapeOp
type Iterator = ReshapeOpIter
fn iter() -> ReshapeOpIter ⓘ
Source§impl Ord for ReshapeOp
impl Ord for ReshapeOp
Source§impl PartialOrd for ReshapeOp
impl PartialOrd for ReshapeOp
Source§impl Serialize for ReshapeOp
impl Serialize for ReshapeOp
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 VariantNames for ReshapeOp
impl VariantNames for ReshapeOp
impl Copy for ReshapeOp
impl Eq for ReshapeOp
impl StructuralPartialEq for ReshapeOp
Auto Trait Implementations§
impl Freeze for ReshapeOp
impl RefUnwindSafe for ReshapeOp
impl Send for ReshapeOp
impl Sync for ReshapeOp
impl Unpin for ReshapeOp
impl UnwindSafe for ReshapeOp
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.