pub struct Set(/* private fields */);
Implementations§
Source§impl Set
impl Set
pub fn new( context: &Context, num_dims: isize, num_syms: isize, constraints: &[Expr], flags: &[bool], ) -> Self
pub fn new_empty(context: &Context, num_dims: isize, num_syms: isize) -> Self
pub fn as_attribute(&self) -> Attribute
pub fn dump(&self)
pub fn get(&self) -> &MlirIntegerSet
pub fn get_constraint(&self, pos: usize) -> Expr
pub fn get_context(&self) -> Context
pub fn get_mut(&mut self) -> &mut MlirIntegerSet
pub fn is_equality_constraint(&self, pos: usize) -> bool
pub fn is_empty_set(&self) -> bool
pub fn is_null(&self) -> bool
pub fn num_constraints(&self) -> isize
pub fn num_dims(&self) -> isize
pub fn num_equalities(&self) -> isize
pub fn num_inequalities(&self) -> isize
pub fn num_inputs(&self) -> isize
pub fn num_symbols(&self) -> isize
pub fn print(&self, state: &mut StringCallbackState)
pub fn replace_dimensions_and_symbols( &mut self, dims: &[Dim], syms: &[Symbol], ) -> Self
Trait Implementations§
Source§impl From<MlirIntegerSet> for Set
impl From<MlirIntegerSet> for Set
Source§fn from(set: MlirIntegerSet) -> Self
fn from(set: MlirIntegerSet) -> Self
Converts to this type from the input type.
impl Copy for Set
Auto Trait Implementations§
impl Freeze for Set
impl RefUnwindSafe for Set
impl !Send for Set
impl !Sync for Set
impl Unpin for Set
impl UnwindSafe for Set
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