pub struct Clause { /* private fields */ }Implementations§
Source§impl Clause
impl Clause
pub fn from_vec<S: AsRef<str>>(lits: Vec<Lit>, info: S) -> Self
pub fn from_literals<I, S>(literals: I, info: S) -> Self
pub fn from_pair<L1, L2, S>(lit1: L1, lit2: L2, info: S) -> Self
pub fn from_literals_checked<I, S>(literals: I, info: S) -> Option<Self>
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn get_literals(&self) -> &[Lit]
pub fn get_info(&self) -> &str
Trait Implementations§
Source§impl Contextual for Clause
impl Contextual for Clause
fn format(&self, ctx: &ContextHandle) -> Result<String, AcesError>
fn with(&self, ctx: &ContextHandle) -> InContext<'_, Self>
fn with_mut(&mut self, ctx: &ContextHandle) -> InContextMut<'_, Self>
Auto Trait Implementations§
impl Freeze for Clause
impl RefUnwindSafe for Clause
impl Send for Clause
impl Sync for Clause
impl Unpin for Clause
impl UnsafeUnpin for Clause
impl UnwindSafe for Clause
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