pub struct Dictionary(/* private fields */);
Implementations§
Source§impl Dictionary
impl Dictionary
pub fn new(context: &Context, elements: &[Named]) -> Self
pub fn from_checked(attr_: MlirAttribute) -> Self
pub fn get(&self) -> &MlirAttribute
pub fn get_element(&self, i: isize) -> Named
pub fn get_element_by_name(&self, name: &StringRef) -> Attribute
pub fn get_mut(&mut self) -> &mut MlirAttribute
pub fn get_type_id() -> TypeID
pub fn num_elements(&self) -> isize
Trait Implementations§
Source§impl Clone for Dictionary
impl Clone for Dictionary
Source§fn clone(&self) -> Dictionary
fn clone(&self) -> Dictionary
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl From<&Attribute> for Dictionary
impl From<&Attribute> for Dictionary
Source§impl From<Attribute> for Dictionary
impl From<Attribute> for Dictionary
Source§impl From<MlirAttribute> for Dictionary
impl From<MlirAttribute> for Dictionary
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for Dictionary
impl IAttribute for Dictionary
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 Dictionary
impl RefUnwindSafe for Dictionary
impl !Send for Dictionary
impl !Sync for Dictionary
impl Unpin for Dictionary
impl UnwindSafe for Dictionary
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