pub struct Attribute(/* private fields */);
Implementations§
Source§impl Attribute
impl Attribute
pub fn new() -> Self
Sourcepub fn new_distinct(attr: &Attribute) -> Self
pub fn new_distinct(attr: &Attribute) -> Self
This is the only mention of DisctinctAttr. Also, why is it mispelled in the C API?
pub fn from_parse(context: &Context, s: &StringRef) -> Self
pub fn dump(&self)
pub fn get(&self) -> &MlirAttribute
pub fn get_context(&self) -> Context
pub fn get_dialect(&self) -> Dialect
pub fn get_mut(&mut self) -> &mut MlirAttribute
pub fn get_type(&self) -> Type
pub fn get_type_id(&self) -> TypeID
pub fn is_affine_map(&self) -> bool
pub fn is_array(&self) -> bool
pub fn is_bool(&self) -> bool
pub fn is_dense_array_bool(&self) -> bool
pub fn is_dense_array_f32(&self) -> bool
pub fn is_dense_array_f64(&self) -> bool
pub fn is_dense_array_i8(&self) -> bool
pub fn is_dense_array_i16(&self) -> bool
pub fn is_dense_array_i32(&self) -> bool
pub fn is_dense_array_i64(&self) -> bool
pub fn is_dense_elements(&self) -> bool
pub fn is_dense_elements_float(&self) -> bool
pub fn is_dense_elements_int(&self) -> bool
pub fn is_dense_elements_resource(&self) -> bool
pub fn is_dictionary(&self) -> bool
pub fn is_elements(&self) -> bool
pub fn is_flat_symbol_ref(&self) -> bool
pub fn is_float(&self) -> bool
pub fn is_index(&self) -> bool
pub fn is_integer(&self) -> bool
pub fn is_integer_set(&self) -> bool
pub fn is_location(&self) -> bool
pub fn is_null(&self) -> bool
pub fn is_opaque(&self) -> bool
pub fn is_sparse_elements(&self) -> bool
pub fn is_strided_layout(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_symbol_ref(&self) -> bool
pub fn is_type(&self) -> bool
pub fn is_unit(&self) -> bool
pub fn print(&self, state: &mut StringCallbackState)
pub fn to_location(&self) -> Location
Trait Implementations§
Source§impl From<&Attribute> for DenseArray
impl From<&Attribute> for DenseArray
Source§impl From<&Attribute> for Dictionary
impl From<&Attribute> for Dictionary
Source§impl From<&Attribute> for IntegerSet
impl From<&Attribute> for IntegerSet
Source§impl From<&Attribute> for SparseElements
impl From<&Attribute> for SparseElements
Source§impl From<&Attribute> for StridedLayout
impl From<&Attribute> for StridedLayout
Source§impl From<Attribute> for DenseArray
impl From<Attribute> for DenseArray
Source§impl From<Attribute> for Dictionary
impl From<Attribute> for Dictionary
Source§impl From<Attribute> for IntegerSet
impl From<Attribute> for IntegerSet
Source§impl From<Attribute> for SparseElements
impl From<Attribute> for SparseElements
Source§impl From<Attribute> for StridedLayout
impl From<Attribute> for StridedLayout
Source§impl From<MlirAttribute> for Attribute
impl From<MlirAttribute> for Attribute
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for Attribute
impl IAttribute for Attribute
fn as_attribute(&self) -> Attribute
fn get(&self) -> &MlirAttribute
fn get_mut(&mut self) -> &mut MlirAttribute
fn get_context(&self) -> Context
fn get_type(&self) -> Type
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl !Send for Attribute
impl !Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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