mlir::attributesTrait IAttribute
Source pub trait IAttribute {
// Required methods
fn get(&self) -> &MlirAttribute;
fn get_mut(&mut self) -> &mut MlirAttribute;
// Provided methods
fn as_attribute(&self) -> Attribute { ... }
fn get_context(&self) -> Context { ... }
fn get_type(&self) -> Type { ... }
}
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.