pub struct Bool {
pub id: TermId,
}Expand description
A boolean-sorted term, analogous to z3::Bool<'ctx>.
Fields§
§id: TermIdThe underlying term identifier.
Implementations§
Source§impl Bool
impl Bool
Sourcepub fn new_const(ctx: &Z3Context, name: &str) -> Self
pub fn new_const(ctx: &Z3Context, name: &str) -> Self
Declare a fresh boolean constant named name.
Sourcepub fn and(ctx: &Z3Context, args: &[Bool]) -> Self
pub fn and(ctx: &Z3Context, args: &[Bool]) -> Self
Logical conjunction (AND) of a slice of boolean terms.
Sourcepub fn or(ctx: &Z3Context, args: &[Bool]) -> Self
pub fn or(ctx: &Z3Context, args: &[Bool]) -> Self
Logical disjunction (OR) of a slice of boolean terms.
Sourcepub fn implies(ctx: &Z3Context, lhs: &Bool, rhs: &Bool) -> Self
pub fn implies(ctx: &Z3Context, lhs: &Bool, rhs: &Bool) -> Self
Logical implication: lhs => rhs.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bool
impl RefUnwindSafe for Bool
impl Send for Bool
impl Sync for Bool
impl Unpin for Bool
impl UnsafeUnpin for Bool
impl UnwindSafe for Bool
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more