pub struct FunctionTableEntry<'a> {
entry_index: usize,
table: usize,
regulators: &'a Vec<VariableId>,
}
Expand description
(experimental) Represents one “line” in a Boolean function table.
You can query the state of input variables on this line or make a new line with updated variable values.
Fields
entry_index: usize
table: usize
regulators: &'a Vec<VariableId>
Implementations
sourceimpl FunctionTableEntry<'_>
impl FunctionTableEntry<'_>
sourcepub fn get_value(&self, variable: VariableId) -> bool
pub fn get_value(&self, variable: VariableId) -> bool
Obtain the value of the input variable. Panics if the variable is not an input of this function.
sourcepub fn flip_value(&self, variable: VariableId) -> FunctionTableEntry<'_>
pub fn flip_value(&self, variable: VariableId) -> FunctionTableEntry<'_>
Obtain a table entry with the value of variable
flipped.
Auto Trait Implementations
impl<'a> RefUnwindSafe for FunctionTableEntry<'a>
impl<'a> Send for FunctionTableEntry<'a>
impl<'a> Sync for FunctionTableEntry<'a>
impl<'a> Unpin for FunctionTableEntry<'a>
impl<'a> UnwindSafe for FunctionTableEntry<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more