pub struct Sizes(/* private fields */);
Implementations§
Source§impl Sizes
impl Sizes
pub fn get(&self) -> &MlirAttribute
pub fn get_mut(&mut self) -> &mut MlirAttribute
Trait Implementations§
Source§impl From<MlirAttribute> for Sizes
impl From<MlirAttribute> for Sizes
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for Sizes
impl IAttribute for Sizes
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 Sizes
impl IAttributeNamed for Sizes
Source§impl NamedArrayOfIntegers for Sizes
impl NamedArrayOfIntegers for Sizes
fn new(context: &Context, elements: &[IntegerAttr]) -> Self
fn new_i32(context: &Context, elements: &[i32]) -> Self
fn new_i64(context: &Context, elements: &[i64]) -> Self
fn from_checked(attr: MlirAttribute) -> Self
fn as_array(&self) -> Array
fn as_integers(&self) -> Vec<IntegerAttr>
fn num_elements(&self) -> isize
Auto Trait Implementations§
impl Freeze for Sizes
impl RefUnwindSafe for Sizes
impl !Send for Sizes
impl !Sync for Sizes
impl Unpin for Sizes
impl UnwindSafe for Sizes
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