pub struct IntegerMemorySpace(/* private fields */);
Implementations§
Source§impl IntegerMemorySpace
impl IntegerMemorySpace
pub fn new(context: &Context, n: i64) -> Self
pub fn get(&self) -> &MlirAttribute
pub fn get_mut(&mut self) -> &mut MlirAttribute
Trait Implementations§
Source§impl Clone for IntegerMemorySpace
impl Clone for IntegerMemorySpace
Source§fn clone(&self) -> IntegerMemorySpace
fn clone(&self) -> IntegerMemorySpace
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<MlirAttribute> for IntegerMemorySpace
impl From<MlirAttribute> for IntegerMemorySpace
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for IntegerMemorySpace
impl IAttribute for IntegerMemorySpace
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 IntegerMemorySpace
impl IAttributeNamed for IntegerMemorySpace
Source§impl NamedMemorySpace for IntegerMemorySpace
impl NamedMemorySpace for IntegerMemorySpace
fn from_checked(attr: MlirAttribute) -> Self
fn new_integer(attr: &IntegerAttr) -> Self
fn new_none() -> Self
fn new_opaque(attr: &Opaque) -> Self
fn new_string(attr: &StringAttr) -> Self
fn as_integer(&self) -> Option<IntegerAttr>
fn as_none(&self) -> Option<Attribute>
fn as_opaque(&self) -> Option<Opaque>
fn as_string(&self) -> Option<StringAttr>
fn eq(&self, rhs: &Self) -> bool
fn is_integer(&self) -> bool
fn is_none(&self) -> bool
fn is_opaque(&self) -> bool
fn is_string(&self) -> bool
Source§impl PartialEq for IntegerMemorySpace
impl PartialEq for IntegerMemorySpace
Auto Trait Implementations§
impl Freeze for IntegerMemorySpace
impl RefUnwindSafe for IntegerMemorySpace
impl !Send for IntegerMemorySpace
impl !Sync for IntegerMemorySpace
impl Unpin for IntegerMemorySpace
impl UnwindSafe for IntegerMemorySpace
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