[−][src]Struct biodivine_lib_bdd::BddVariableSetBuilder
Used to safely initialize BddVariableSet
.
Note that some characters are not allowed in variable names (to allow safe serialisation,
formula parsers and export as .dot
, etc.).
These characters are !
, &
, |
, ^
, =
, <
, >
, (
and )
.
Methods
impl BddVariableSetBuilder
[src]
pub fn new() -> BddVariableSetBuilder
[src]
Create a new builder without any variables.
pub fn make_variable(&mut self, name: &str) -> BddVariable
[src]
Create a new variable with the given name
. Returns a BddVariable
instance that can be later used to create and query actual BDDs.
Panics:
- Each variable name has to be unique.
- Currently, there can be at most 65535 variables.
- The name must not contain
!
,&
,|
,^
,=
,<
,>
,(
or)
.
pub fn make_variables(&mut self, names: Vec<&str>) -> Vec<BddVariable>
[src]
Similar to make_variable
, but allows creating multiple variables at the same time.
pub fn build(self) -> BddVariableSet
[src]
Convert this builder to an actual variable set.
Auto Trait Implementations
impl RefUnwindSafe for BddVariableSetBuilder
impl Send for BddVariableSetBuilder
impl Sync for BddVariableSetBuilder
impl Unpin for BddVariableSetBuilder
impl UnwindSafe for BddVariableSetBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,