pub struct SymbolRef(/* private fields */);
Implementations§
Source§impl SymbolRef
impl SymbolRef
pub fn new(context: &Context, sym: &StringRef, refs: &[Attribute]) -> Self
pub fn new_flat(context: &Context, sym: &StringRef) -> Self
pub fn from_checked(attr_: MlirAttribute) -> Self
pub fn get(&self) -> &MlirAttribute
pub fn get_leaf(&self) -> StringRef
pub fn get_mut(&mut self) -> &mut MlirAttribute
pub fn get_nested_reference(&self, i: isize) -> Attribute
pub fn get_root(&self) -> StringRef
pub fn get_type_id() -> TypeID
Sourcepub fn get_value(&self) -> Option<StringRef>
pub fn get_value(&self) -> Option<StringRef>
If this is a flat symbol reference, return the referenced symbol.
pub fn num_nested_references(&self) -> isize
Trait Implementations§
Source§impl From<MlirAttribute> for SymbolRef
impl From<MlirAttribute> for SymbolRef
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for SymbolRef
impl IAttribute for SymbolRef
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 SymbolRef
impl RefUnwindSafe for SymbolRef
impl !Send for SymbolRef
impl !Sync for SymbolRef
impl Unpin for SymbolRef
impl UnwindSafe for SymbolRef
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