pub struct Adjacency { /* private fields */ }Implementations§
Source§impl Adjacency
impl Adjacency
pub fn build<D: Domain>( num_vars: usize, constraints: &[ConstraintEnum<D>], ) -> Self
pub fn constraints_for(&self, var: VarId) -> &[u32]
pub fn neighbors_of_constraint(&self, ci: usize) -> &[u32]
pub fn neighbors_of_var(&self, var: VarId) -> &[u32]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Adjacency
impl RefUnwindSafe for Adjacency
impl Send for Adjacency
impl Sync for Adjacency
impl Unpin for Adjacency
impl UnsafeUnpin for Adjacency
impl UnwindSafe for Adjacency
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