#[repr(i32)]pub enum AttributeType {
Show 13 variants
Undefined = 0,
Float = 1,
Int = 2,
String = 3,
Tensor = 4,
Graph = 5,
SparseTensor = 11,
Floats = 6,
Ints = 7,
Strings = 8,
Tensors = 9,
Graphs = 10,
SparseTensors = 12,
}
Expand description
Note: this enum is structurally identical to the OpSchema::AttrType enum defined in schema.h. If you rev one, you likely need to rev the other.
Variants§
Undefined = 0
Float = 1
Int = 2
String = 3
Tensor = 4
Graph = 5
SparseTensor = 11
Floats = 6
Ints = 7
Strings = 8
Tensors = 9
Graphs = 10
SparseTensors = 12
Implementations§
Trait Implementations§
Source§impl Clone for AttributeType
impl Clone for AttributeType
Source§fn clone(&self) -> AttributeType
fn clone(&self) -> AttributeType
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 moreSource§impl Debug for AttributeType
impl Debug for AttributeType
Source§impl Default for AttributeType
impl Default for AttributeType
Source§fn default() -> AttributeType
fn default() -> AttributeType
Returns the “default value” for a type. Read more
Source§impl From<AttributeType> for i32
impl From<AttributeType> for i32
Source§fn from(value: AttributeType) -> i32
fn from(value: AttributeType) -> i32
Converts to this type from the input type.
Source§impl Hash for AttributeType
impl Hash for AttributeType
Source§impl Ord for AttributeType
impl Ord for AttributeType
Source§fn cmp(&self, other: &AttributeType) -> Ordering
fn cmp(&self, other: &AttributeType) -> 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 AttributeType
impl PartialEq for AttributeType
Source§impl PartialOrd for AttributeType
impl PartialOrd for AttributeType
impl Copy for AttributeType
impl Eq for AttributeType
impl StructuralPartialEq for AttributeType
Auto Trait Implementations§
impl Freeze for AttributeType
impl RefUnwindSafe for AttributeType
impl Send for AttributeType
impl Sync for AttributeType
impl Unpin for AttributeType
impl UnwindSafe for AttributeType
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