pub struct Index(/* private fields */);
Implementations§
Source§impl Index
impl Index
Sourcepub fn new(context: &Context, value: i64) -> Self
pub fn new(context: &Context, value: i64) -> Self
NOTE: No getters for index attribute are currently provided by the C API. As a hack, construct a string and parse it as an attribute.
pub fn from_checked(attr_: MlirAttribute) -> Self
pub fn get(&self) -> &MlirAttribute
pub fn get_mut(&mut self) -> &mut MlirAttribute
Sourcepub fn get_type_id() -> TypeID
pub fn get_type_id() -> TypeID
NOTE: No getters for index attribute are currently provided by the C API. As a hack, grab the ID from a freshly parsed index attribute.
Trait Implementations§
Source§impl From<MlirAttribute> for Index
impl From<MlirAttribute> for Index
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for Index
impl IAttribute for Index
fn get(&self) -> &MlirAttribute
fn get_mut(&mut self) -> &mut MlirAttribute
fn as_attribute(&self) -> Attribute
fn get_context(&self) -> Context
fn get_type(&self) -> Type
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl !Send for Index
impl !Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
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