pub struct Predicate(/* private fields */);
Implementations§
Source§impl Predicate
impl Predicate
pub fn new(context: &Context, pred: CmpPredicate) -> Self
pub fn get(&self) -> &MlirAttribute
pub fn get_mut(&mut self) -> &mut MlirAttribute
Trait Implementations§
Source§impl From<MlirAttribute> for Predicate
impl From<MlirAttribute> for Predicate
Source§fn from(attr: MlirAttribute) -> Self
fn from(attr: MlirAttribute) -> Self
Converts to this type from the input type.
Source§impl IAttribute for Predicate
impl IAttribute for Predicate
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 Predicate
impl IAttributeNamed for Predicate
Source§impl NamedParsed for Predicate
impl NamedParsed for Predicate
fn new(context: &Context, s: &StringRef) -> Self
fn new_custom(context: &Context, cad: &CustomAttributeData) -> Self
Auto Trait Implementations§
impl Freeze for Predicate
impl RefUnwindSafe for Predicate
impl !Send for Predicate
impl !Sync for Predicate
impl Unpin for Predicate
impl UnwindSafe for Predicate
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