pub struct Dimension(/* private fields */);
Implementations§
Trait Implementations§
Source§impl From<MlirAttribute> for Dimension
impl From<MlirAttribute> for Dimension
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for Dimension
impl IAttribute for Dimension
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 Dimension
impl IAttributeNamed for Dimension
Source§impl NamedInteger for Dimension
impl NamedInteger for Dimension
fn new(context: &Context, n: i64, width: usize) -> Self
fn new_index(context: &Context, n: i64) -> Self
fn new_signed(context: &Context, n: i64, width: usize) -> Self
fn new_signless(context: &Context, n: i64, width: usize) -> Self
fn new_unsigned(context: &Context, n: i64, width: usize) -> Self
fn from_checked(attr: MlirAttribute) -> Self
fn as_integer(&self) -> IntegerAttr
fn get_value(&self) -> i64
Auto Trait Implementations§
impl Freeze for Dimension
impl RefUnwindSafe for Dimension
impl !Send for Dimension
impl !Sync for Dimension
impl Unpin for Dimension
impl UnwindSafe for Dimension
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