pub struct PirGraph { /* private fields */ }Implementations§
Source§impl PirGraph
impl PirGraph
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn nodes(&self) -> &[PirNode]
pub fn node(&self, id: PirNodeId) -> Option<&PirNode>
pub fn const_true(&mut self) -> PirNodeId
pub fn const_false(&mut self) -> PirNodeId
pub fn lit(&mut self, leaf: LeafId) -> PirNodeId
pub fn neg_lit(&mut self, leaf: LeafId) -> PirNodeId
pub fn and(&mut self, children: Vec<PirNodeId>) -> PirNodeId
pub fn or(&mut self, children: Vec<PirNodeId>) -> PirNodeId
pub fn decision( &mut self, var: ChoiceVarId, child_false: PirNodeId, child_true: PirNodeId, ) -> PirNodeId
pub fn levelize(&self, roots: &[PirNodeId]) -> Result<Vec<Vec<PirNodeId>>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PirGraph
impl RefUnwindSafe for PirGraph
impl Send for PirGraph
impl Sync for PirGraph
impl Unpin for PirGraph
impl UnsafeUnpin for PirGraph
impl UnwindSafe for PirGraph
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