pub struct DefaultMemorySpace(/* private fields */);
Implementations§
Source§impl DefaultMemorySpace
impl DefaultMemorySpace
pub fn new() -> Self
pub fn get(&self) -> &MlirAttribute
pub fn get_mut(&mut self) -> &mut MlirAttribute
Trait Implementations§
Source§impl Clone for DefaultMemorySpace
impl Clone for DefaultMemorySpace
Source§fn clone(&self) -> DefaultMemorySpace
fn clone(&self) -> DefaultMemorySpace
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 Default for DefaultMemorySpace
impl Default for DefaultMemorySpace
Source§impl From<MlirAttribute> for DefaultMemorySpace
impl From<MlirAttribute> for DefaultMemorySpace
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for DefaultMemorySpace
impl IAttribute for DefaultMemorySpace
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 DefaultMemorySpace
impl IAttributeNamed for DefaultMemorySpace
Source§impl NamedMemorySpace for DefaultMemorySpace
impl NamedMemorySpace for DefaultMemorySpace
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 DefaultMemorySpace
impl PartialEq for DefaultMemorySpace
Auto Trait Implementations§
impl Freeze for DefaultMemorySpace
impl RefUnwindSafe for DefaultMemorySpace
impl !Send for DefaultMemorySpace
impl !Sync for DefaultMemorySpace
impl Unpin for DefaultMemorySpace
impl UnwindSafe for DefaultMemorySpace
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