#[non_exhaustive]pub enum OpAttribute {
Boolean {
name: String,
value: bool,
},
SignedInteger {
name: String,
value: i64,
},
UnsignedInteger {
name: String,
value: u64,
},
Float {
name: String,
value: f64,
},
String {
name: String,
value: String,
},
Shape {
name: String,
value: Vec<usize>,
},
Enum {
name: String,
value: String,
},
}Expand description
One ordered non-value input that affects operation meaning.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Boolean
Boolean attribute.
SignedInteger
Signed integer attribute.
UnsignedInteger
Unsigned integer attribute.
Float
Floating-point attribute.
String
String attribute.
Shape
Shape attribute.
Enum
Symbolic enum attribute.
Implementations§
Source§impl OpAttribute
impl OpAttribute
Trait Implementations§
Source§impl Clone for OpAttribute
impl Clone for OpAttribute
Source§impl Debug for OpAttribute
impl Debug for OpAttribute
Source§impl PartialEq for OpAttribute
impl PartialEq for OpAttribute
impl StructuralPartialEq for OpAttribute
Auto Trait Implementations§
impl Forget for OpAttribute
impl Freeze for OpAttribute
impl Move for OpAttribute
impl RefUnwindSafe for OpAttribute
impl Send for OpAttribute
impl Sync for OpAttribute
impl Unpin for OpAttribute
impl UnsafeUnpin for OpAttribute
impl UnwindSafe for OpAttribute
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