pub struct Named(/* private fields */);
Implementations§
Source§impl Named
impl Named
pub fn new(id: &Identifier, attr: &Attribute) -> Self
pub fn get(&self) -> &MlirNamedAttribute
pub fn get_identifier(&self) -> Identifier
pub fn get_mut(&mut self) -> &mut MlirNamedAttribute
Trait Implementations§
Source§impl From<MlirNamedAttribute> for Named
impl From<MlirNamedAttribute> for Named
Source§fn from(attr: MlirNamedAttribute) -> Self
fn from(attr: MlirNamedAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for Named
impl IAttribute for Named
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 Named
impl RefUnwindSafe for Named
impl !Send for Named
impl !Sync for Named
impl Unpin for Named
impl UnwindSafe for Named
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