[−][src]Struct z3::ast::Bool
Ast
node representing a boolean value.
Methods
impl<'ctx> Bool<'ctx>
[src]
pub fn new_const<S: Into<Symbol>>(ctx: &'ctx Context, name: S) -> Bool<'ctx>
[src]
pub fn fresh_const(ctx: &'ctx Context, prefix: &str) -> Bool<'ctx>
[src]
pub fn from_bool(ctx: &'ctx Context, b: bool) -> Bool<'ctx>
[src]
pub fn as_bool(&self) -> Option<bool>
[src]
pub fn translate<'dest_ctx>(&self, dest: &'dest_ctx Context) -> Bool<'dest_ctx>
[src]
pub fn ite<T>(&self, a: &T, b: &T) -> T where
T: Ast<'ctx>,
[src]
T: Ast<'ctx>,
pub fn and(&self, other: &[&Self]) -> Self
[src]
pub fn or(&self, other: &[&Self]) -> Self
[src]
pub fn xor(&self, other: &Self) -> Self
[src]
pub fn not(&self) -> Self
[src]
pub fn iff(&self, other: &Self) -> Self
[src]
pub fn implies(&self, other: &Self) -> Self
[src]
pub fn pb_le(
&self,
other: &[&Bool<'ctx>],
coeffs: Vec<i32>,
k: i32
) -> Bool<'ctx>
[src]
&self,
other: &[&Bool<'ctx>],
coeffs: Vec<i32>,
k: i32
) -> Bool<'ctx>
pub fn pb_ge(
&self,
other: &[&Bool<'ctx>],
coeffs: Vec<i32>,
k: i32
) -> Bool<'ctx>
[src]
&self,
other: &[&Bool<'ctx>],
coeffs: Vec<i32>,
k: i32
) -> Bool<'ctx>
pub fn pb_eq(
&self,
other: &[&Bool<'ctx>],
coeffs: Vec<i32>,
k: i32
) -> Bool<'ctx>
[src]
&self,
other: &[&Bool<'ctx>],
coeffs: Vec<i32>,
k: i32
) -> Bool<'ctx>
Trait Implementations
impl<'ctx> Ast<'ctx> for Bool<'ctx>
[src]
fn new(ctx: &'ctx Context, ast: Z3_ast) -> Self
[src]
fn get_ctx(&self) -> &'ctx Context
[src]
fn get_z3_ast(&self) -> Z3_ast
[src]
fn _eq(&self, other: &Self) -> Bool<'ctx>
[src]
Compare this Ast
with another Ast
, and get a Bool
representing the result. Read more
fn distinct(&self, other: &[&Self]) -> Bool<'ctx>
[src]
Compare this Ast
with a list of other Ast
s, and get a Bool
which is true only if all arguments (including Self) are pairwise distinct. Read more
fn get_sort(&self) -> Sort<'ctx>
[src]
Get the Sort
of the Ast
fn simplify(&self) -> Self
[src]
Simplify the Ast
. Returns a new Ast
which is equivalent, but simplified using algebraic simplification rules, such as constant propagation. Read more
fn substitute<T: Ast<'ctx>>(&self, substitutions: &[(&T, &T)]) -> Self
[src]
Performs substitution on the Ast
. The slice substitutions
contains a list of pairs with a "from" Ast
that will be substituted by a "to" Ast
. Read more
impl<'ctx> From<Bool<'ctx>> for Z3_ast
[src]
impl<'ctx> From<Bool<'ctx>> for Dynamic<'ctx>
[src]
impl<'ctx> Drop for Bool<'ctx>
[src]
impl<'ctx> PartialEq<Bool<'ctx>> for Bool<'ctx>
[src]
fn eq(&self, other: &Bool<'ctx>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<'ctx> Clone for Bool<'ctx>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'ctx> Eq for Bool<'ctx>
[src]
impl<'ctx> Display for Bool<'ctx>
[src]
impl<'ctx> Debug for Bool<'ctx>
[src]
impl<'ctx> TryFrom<Dynamic<'ctx>> for Bool<'ctx>
[src]
type Error = String
The type returned in the event of a conversion error.
fn try_from(ast: Dynamic<'ctx>) -> Result<Self, String>
[src]
impl<'ctx> Hash for Bool<'ctx>
[src]
Auto Trait Implementations
impl<'ctx> !Send for Bool<'ctx>
impl<'ctx> Unpin for Bool<'ctx>
impl<'ctx> !Sync for Bool<'ctx>
impl<'ctx> UnwindSafe for Bool<'ctx>
impl<'ctx> RefUnwindSafe for Bool<'ctx>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,