Struct dypdl::TableRegistry

source ·
pub struct TableRegistry {
    pub integer_tables: TableData<Integer>,
    pub continuous_tables: TableData<Continuous>,
    pub set_tables: TableData<Set>,
    pub vector_tables: TableData<Vector>,
    pub element_tables: TableData<Element>,
    pub bool_tables: TableData<bool>,
}
Expand description

Tables of constants.

Fields§

§integer_tables: TableData<Integer>

Integer tables.

§continuous_tables: TableData<Continuous>

Continuous tables.

§set_tables: TableData<Set>

Set tables.

§vector_tables: TableData<Vector>

Vector tables.

§element_tables: TableData<Element>

Element tables.

§bool_tables: TableData<bool>

Bool tables.

Implementations§

source§

impl TableRegistry

source

pub fn get_name_set(&self) -> FxHashSet<String>

Returns the set of names used by constants and tables.

Trait Implementations§

source§

impl Clone for TableRegistry

source§

fn clone(&self) -> TableRegistry

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TableRegistry

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for TableRegistry

source§

fn default() -> TableRegistry

Returns the “default value” for a type. Read more
source§

impl PartialEq for TableRegistry

source§

fn eq(&self, other: &TableRegistry) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TableInterface<FixedBitSet> for TableRegistry

source§

fn add_table_1d<U>( &mut self, name: U, v: Vec<Set>, ) -> Result<Table1DHandle<Set>, ModelErr>
where String: From<U>,

Adds and returns a 1D table. Read more
source§

fn add_table_2d<U>( &mut self, name: U, v: Vec<Vec<Set>>, ) -> Result<Table2DHandle<Set>, ModelErr>
where String: From<U>,

Adds and returns a 2D table. Read more
source§

fn add_table_3d<U>( &mut self, name: U, v: Vec<Vec<Vec<Set>>>, ) -> Result<Table3DHandle<Set>, ModelErr>
where String: From<U>,

Adds and returns a 3D table. Read more
source§

fn add_table<U>( &mut self, name: U, map: FxHashMap<Vec<Element>, Set>, default: Set, ) -> Result<TableHandle<Set>, ModelErr>
where String: From<U>,

Adds and returns a 3D table. Read more
source§

impl TableInterface<Vec<usize>> for TableRegistry

source§

fn add_table_1d<U>( &mut self, name: U, v: Vec<Vector>, ) -> Result<Table1DHandle<Vector>, ModelErr>
where String: From<U>,

Adds and returns a 1D table. Read more
source§

fn add_table_2d<U>( &mut self, name: U, v: Vec<Vec<Vector>>, ) -> Result<Table2DHandle<Vector>, ModelErr>
where String: From<U>,

Adds and returns a 2D table. Read more
source§

fn add_table_3d<U>( &mut self, name: U, v: Vec<Vec<Vec<Vector>>>, ) -> Result<Table3DHandle<Vector>, ModelErr>
where String: From<U>,

Adds and returns a 3D table. Read more
source§

fn add_table<U>( &mut self, name: U, map: FxHashMap<Vec<Element>, Vector>, default: Vector, ) -> Result<TableHandle<Vector>, ModelErr>
where String: From<U>,

Adds and returns a 3D table. Read more
source§

impl TableInterface<bool> for TableRegistry

source§

fn add_table_1d<U>( &mut self, name: U, v: Vec<bool>, ) -> Result<Table1DHandle<bool>, ModelErr>
where String: From<U>,

Adds and returns a 1D table. Read more
source§

fn add_table_2d<U>( &mut self, name: U, v: Vec<Vec<bool>>, ) -> Result<Table2DHandle<bool>, ModelErr>
where String: From<U>,

Adds and returns a 2D table. Read more
source§

fn add_table_3d<U>( &mut self, name: U, v: Vec<Vec<Vec<bool>>>, ) -> Result<Table3DHandle<bool>, ModelErr>
where String: From<U>,

Adds and returns a 3D table. Read more
source§

fn add_table<U>( &mut self, name: U, map: FxHashMap<Vec<Element>, bool>, default: bool, ) -> Result<TableHandle<bool>, ModelErr>
where String: From<U>,

Adds and returns a 3D table. Read more
source§

impl TableInterface<f64> for TableRegistry

source§

fn add_table_1d<U>( &mut self, name: U, v: Vec<Continuous>, ) -> Result<Table1DHandle<Continuous>, ModelErr>
where String: From<U>,

Adds and returns a 1D table. Read more
source§

fn add_table_2d<U>( &mut self, name: U, v: Vec<Vec<Continuous>>, ) -> Result<Table2DHandle<Continuous>, ModelErr>
where String: From<U>,

Adds and returns a 2D table. Read more
source§

fn add_table_3d<U>( &mut self, name: U, v: Vec<Vec<Vec<Continuous>>>, ) -> Result<Table3DHandle<Continuous>, ModelErr>
where String: From<U>,

Adds and returns a 3D table. Read more
source§

fn add_table<U>( &mut self, name: U, map: FxHashMap<Vec<Element>, Continuous>, default: Continuous, ) -> Result<TableHandle<Continuous>, ModelErr>
where String: From<U>,

Adds and returns a 3D table. Read more
source§

impl TableInterface<i32> for TableRegistry

source§

fn add_table_1d<U>( &mut self, name: U, v: Vec<Integer>, ) -> Result<Table1DHandle<Integer>, ModelErr>
where String: From<U>,

Adds and returns a 1D table. Read more
source§

fn add_table_2d<U>( &mut self, name: U, v: Vec<Vec<Integer>>, ) -> Result<Table2DHandle<Integer>, ModelErr>
where String: From<U>,

Adds and returns a 2D table. Read more
source§

fn add_table_3d<U>( &mut self, name: U, v: Vec<Vec<Vec<Integer>>>, ) -> Result<Table3DHandle<Integer>, ModelErr>
where String: From<U>,

Adds and returns a 3D table. Read more
source§

fn add_table<U>( &mut self, name: U, map: FxHashMap<Vec<Element>, Integer>, default: Integer, ) -> Result<TableHandle<Integer>, ModelErr>
where String: From<U>,

Adds and returns a 3D table. Read more
source§

impl TableInterface<usize> for TableRegistry

source§

fn add_table_1d<U>( &mut self, name: U, v: Vec<Element>, ) -> Result<Table1DHandle<Element>, ModelErr>
where String: From<U>,

Adds and returns a 1D table. Read more
source§

fn add_table_2d<U>( &mut self, name: U, v: Vec<Vec<Element>>, ) -> Result<Table2DHandle<Element>, ModelErr>
where String: From<U>,

Adds and returns a 2D table. Read more
source§

fn add_table_3d<U>( &mut self, name: U, v: Vec<Vec<Vec<Element>>>, ) -> Result<Table3DHandle<Element>, ModelErr>
where String: From<U>,

Adds and returns a 3D table. Read more
source§

fn add_table<U>( &mut self, name: U, map: FxHashMap<Vec<Element>, Element>, default: Element, ) -> Result<TableHandle<Element>, ModelErr>
where String: From<U>,

Adds and returns a 3D table. Read more
source§

impl StructuralPartialEq for TableRegistry

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.