pub struct GlobalRef(/* private fields */);
Implementations§
Source§impl GlobalRef
impl GlobalRef
pub fn get(&self) -> &MlirAttribute
pub fn get_mut(&mut self) -> &mut MlirAttribute
Trait Implementations§
Source§impl From<MlirAttribute> for GlobalRef
impl From<MlirAttribute> for GlobalRef
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for GlobalRef
impl IAttribute for GlobalRef
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
Source§impl IAttributeNamed for GlobalRef
impl IAttributeNamed for GlobalRef
Source§impl NamedSymbolRef for GlobalRef
impl NamedSymbolRef for GlobalRef
fn new(context: &Context, s: &StringRef) -> Self
fn from_checked(attr: MlirAttribute) -> Self
fn from_symbol_ref(s_ref: &SymbolRef) -> Self
fn as_string_ref(&self) -> StringRef
fn as_symbol_ref(&self) -> SymbolRef
Auto Trait Implementations§
impl Freeze for GlobalRef
impl RefUnwindSafe for GlobalRef
impl !Send for GlobalRef
impl !Sync for GlobalRef
impl Unpin for GlobalRef
impl UnwindSafe for GlobalRef
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