pub struct Elements(/* private fields */);
Implementations§
Source§impl Elements
impl Elements
pub fn from_checked(attr_: MlirAttribute) -> Self
pub fn get(&self) -> &MlirAttribute
pub fn get_mut(&mut self) -> &mut MlirAttribute
pub fn get_value(&self, shape: &dyn Shape) -> Attribute
pub fn is_valid_value(&self, shape: &dyn Shape) -> bool
pub fn num_elements(&self) -> isize
Trait Implementations§
Source§impl From<MlirAttribute> for Elements
impl From<MlirAttribute> for Elements
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for Elements
impl IAttribute for Elements
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 Elements
impl RefUnwindSafe for Elements
impl !Send for Elements
impl !Sync for Elements
impl Unpin for Elements
impl UnwindSafe for Elements
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