pub struct PoisonValue(/* private fields */);
Implementations§
Source§impl PoisonValue
impl PoisonValue
pub fn new(context: &Context) -> Self
pub fn get(&self) -> &MlirAttribute
pub fn get_mut(&mut self) -> &mut MlirAttribute
Trait Implementations§
Source§impl Clone for PoisonValue
impl Clone for PoisonValue
Source§fn clone(&self) -> PoisonValue
fn clone(&self) -> PoisonValue
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 PoisonValue
impl From<MlirAttribute> for PoisonValue
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for PoisonValue
impl IAttribute for PoisonValue
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 PoisonValue
impl IAttributeNamed for PoisonValue
Source§impl NamedOpaque for PoisonValue
impl NamedOpaque for PoisonValue
fn new(t: &Type, namespace: &StringRef, data: &StringRef) -> Self
fn new_custom(t: &Type, cad: &CustomAttributeData) -> Self
fn from_checked(attr: MlirAttribute) -> Self
fn as_opaque(&self) -> Opaque
Auto Trait Implementations§
impl Freeze for PoisonValue
impl RefUnwindSafe for PoisonValue
impl !Send for PoisonValue
impl !Sync for PoisonValue
impl Unpin for PoisonValue
impl UnwindSafe for PoisonValue
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