pub struct SingleVariableGeneratingFunction<E: Integer>(pub Vec<E>);Expand description
Measure the number of solutions of the diagram separated by the number of variables that are true in the solution.
Tuple Fields§
§0: Vec<E>Trait Implementations§
Source§impl<E: Clone + Integer> Clone for SingleVariableGeneratingFunction<E>
 
impl<E: Clone + Integer> Clone for SingleVariableGeneratingFunction<E>
Source§fn clone(&self) -> SingleVariableGeneratingFunction<E>
 
fn clone(&self) -> SingleVariableGeneratingFunction<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl<E: Clone + Eq + PartialEq + Debug + Integer + AddAssign> GeneratingFunction for SingleVariableGeneratingFunction<E>
 
impl<E: Clone + Eq + PartialEq + Debug + Integer + AddAssign> GeneratingFunction for SingleVariableGeneratingFunction<E>
Source§fn variable_set(self, _variable: VariableIndex) -> Self
 
fn variable_set(self, _variable: VariableIndex) -> Self
shift up by one
Source§fn variable_not_set(self, _variable: VariableIndex) -> Self
 
fn variable_not_set(self, _variable: VariableIndex) -> Self
Effect of having this variable set. Generally nothing
Source§fn deal_with_variable_being_indeterminate(self, variable: VariableIndex) -> Self
 
fn deal_with_variable_being_indeterminate(self, variable: VariableIndex) -> Self
Effect of having this variable either set or not set.
Source§fn deal_with_variable_range_being_indeterminate(
    self,
    inclusive_start: VariableIndex,
    exclusive_end: VariableIndex,
) -> Self
 
fn deal_with_variable_range_being_indeterminate( self, inclusive_start: VariableIndex, exclusive_end: VariableIndex, ) -> Self
Effect of variables inclusive_start..exclusive_end being indeterminate
Source§impl<E: Clone + Eq + PartialEq + Debug + Integer + AddAssign + MulAssign, M: Copy + Integer + TryInto<E>> GeneratingFunctionWithMultiplicity<M> for SingleVariableGeneratingFunction<E>
 
impl<E: Clone + Eq + PartialEq + Debug + Integer + AddAssign + MulAssign, M: Copy + Integer + TryInto<E>> GeneratingFunctionWithMultiplicity<M> for SingleVariableGeneratingFunction<E>
Source§impl<E: PartialEq + Integer> PartialEq for SingleVariableGeneratingFunction<E>
 
impl<E: PartialEq + Integer> PartialEq for SingleVariableGeneratingFunction<E>
Source§fn eq(&self, other: &SingleVariableGeneratingFunction<E>) -> bool
 
fn eq(&self, other: &SingleVariableGeneratingFunction<E>) -> bool
Tests for 
self and other values to be equal, and is used by ==.impl<E: Eq + Integer> Eq for SingleVariableGeneratingFunction<E>
impl<E: Integer> StructuralPartialEq for SingleVariableGeneratingFunction<E>
Auto Trait Implementations§
impl<E> Freeze for SingleVariableGeneratingFunction<E>
impl<E> RefUnwindSafe for SingleVariableGeneratingFunction<E>where
    E: RefUnwindSafe,
impl<E> Send for SingleVariableGeneratingFunction<E>where
    E: Send,
impl<E> Sync for SingleVariableGeneratingFunction<E>where
    E: Sync,
impl<E> Unpin for SingleVariableGeneratingFunction<E>where
    E: Unpin,
impl<E> UnwindSafe for SingleVariableGeneratingFunction<E>where
    E: UnwindSafe,
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<G> GeneratingFunctionWithMultiplicity<NoMultiplicity> for Gwhere
    G: GeneratingFunction,
 
impl<G> GeneratingFunctionWithMultiplicity<NoMultiplicity> for Gwhere
    G: GeneratingFunction,
Source§fn multiply(self, _multiple: NoMultiplicity) -> G
 
fn multiply(self, _multiple: NoMultiplicity) -> G
multiply self by M.