[−][src]Struct decision_table::DecisionTable
Methods
impl DecisionTable
[src]
pub fn new<T1, T2>(columns: T2) -> Self where
T1: Into<Domain>,
T2: IntoIterator<Item = T1>,
[src]
T1: Into<Domain>,
T2: IntoIterator<Item = T1>,
Create a new DecisionTable with rows having specified number of input columns
pub fn columns_len(&self) -> usize
[src]
pub fn rows_len(&self) -> usize
[src]
pub fn rows<'a>(&'a self) -> impl Iterator<Item = &'a Row>
[src]
Iterate through all rows
pub fn contains<'a, T>(&self, input: T) -> bool where
T: Into<&'a Vec<Cell>> + Clone,
[src]
T: Into<&'a Vec<Cell>> + Clone,
pub fn add(&mut self, row: Row)
[src]
pub fn remove(&mut self, row: &Row) -> bool
[src]
Returns true
if the removed row existed
pub fn is_complete(&self) -> bool
[src]
Returns true
if the table includes every possible combination of inputs.
Auto Trait Implementations
impl RefUnwindSafe for DecisionTable
impl Send for DecisionTable
impl Sync for DecisionTable
impl Unpin for DecisionTable
impl UnwindSafe for DecisionTable
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>,