[][src]Struct decision_table::DecisionTable

pub struct DecisionTable { /* fields omitted */ }

Methods

impl DecisionTable[src]

pub fn new<T1, T2>(columns: T2) -> Self where
    T1: Into<Domain>,
    T2: IntoIterator<Item = T1>, 
[src]

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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.