Struct z3::FuncInterp

source ·
pub struct FuncInterp<'ctx> { /* private fields */ }
Expand description

Stores the interpretation of a function in a Z3 model. https://z3prover.github.io/api/html/classz3py_1_1_func_interp.html

Implementations§

source§

impl<'ctx> FuncInterp<'ctx>

source

pub fn get_arity(&self) -> usize

Returns the number of arguments in the function interpretation.

source

pub fn get_num_entries(&self) -> u32

Returns the number of entries in the function interpretation.

source

pub fn add_entry(&self, args: &[Dynamic<'ctx>], value: &Dynamic<'ctx>)

Adds an entry to the function interpretation.

source

pub fn get_entries(&self) -> Vec<FuncEntry<'_>>

Returns the entries of the function interpretation.

source

pub fn get_else(&self) -> Dynamic<'ctx>

Returns the else value of the function interpretation. Returns None if the else value is not set by Z3.

source

pub fn set_else(&self, ast: &Dynamic<'_>)

Sets the else value of the function interpretation.

Trait Implementations§

source§

impl<'ctx> Debug for FuncInterp<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'ctx> Display for FuncInterp<'ctx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'ctx> Drop for FuncInterp<'ctx>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl<'ctx> RefUnwindSafe for FuncInterp<'ctx>

§

impl<'ctx> !Send for FuncInterp<'ctx>

§

impl<'ctx> !Sync for FuncInterp<'ctx>

§

impl<'ctx> Unpin for FuncInterp<'ctx>

§

impl<'ctx> UnwindSafe for FuncInterp<'ctx>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.