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
impl TableRegistry
sourcepub fn get_name_set(&self) -> FxHashSet<String>
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
impl Clone for TableRegistry
source§fn clone(&self) -> TableRegistry
fn clone(&self) -> TableRegistry
Returns a copy 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 Debug for TableRegistry
impl Debug for TableRegistry
source§impl Default for TableRegistry
impl Default for TableRegistry
source§fn default() -> TableRegistry
fn default() -> TableRegistry
Returns the “default value” for a type. Read more
source§impl PartialEq for TableRegistry
impl PartialEq for TableRegistry
source§fn eq(&self, other: &TableRegistry) -> bool
fn eq(&self, other: &TableRegistry) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TableInterface<FixedBitSet> for TableRegistry
impl TableInterface<FixedBitSet> for TableRegistry
source§fn add_table_1d<U>(
&mut self,
name: U,
v: Vec<Set>,
) -> Result<Table1DHandle<Set>, ModelErr>
fn add_table_1d<U>( &mut self, name: U, v: Vec<Set>, ) -> Result<Table1DHandle<Set>, ModelErr>
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>
fn add_table_2d<U>( &mut self, name: U, v: Vec<Vec<Set>>, ) -> Result<Table2DHandle<Set>, ModelErr>
Adds and returns a 2D table. Read more
source§impl TableInterface<Vec<usize>> for TableRegistry
impl TableInterface<Vec<usize>> for TableRegistry
source§fn add_table_1d<U>(
&mut self,
name: U,
v: Vec<Vector>,
) -> Result<Table1DHandle<Vector>, ModelErr>
fn add_table_1d<U>( &mut self, name: U, v: Vec<Vector>, ) -> Result<Table1DHandle<Vector>, ModelErr>
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>
fn add_table_2d<U>( &mut self, name: U, v: Vec<Vec<Vector>>, ) -> Result<Table2DHandle<Vector>, ModelErr>
Adds and returns a 2D table. Read more
source§impl TableInterface<bool> for TableRegistry
impl TableInterface<bool> for TableRegistry
source§fn add_table_1d<U>(
&mut self,
name: U,
v: Vec<bool>,
) -> Result<Table1DHandle<bool>, ModelErr>
fn add_table_1d<U>( &mut self, name: U, v: Vec<bool>, ) -> Result<Table1DHandle<bool>, ModelErr>
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>
fn add_table_2d<U>( &mut self, name: U, v: Vec<Vec<bool>>, ) -> Result<Table2DHandle<bool>, ModelErr>
Adds and returns a 2D table. Read more
source§impl TableInterface<f64> for TableRegistry
impl TableInterface<f64> for TableRegistry
source§fn add_table_1d<U>(
&mut self,
name: U,
v: Vec<Continuous>,
) -> Result<Table1DHandle<Continuous>, ModelErr>
fn add_table_1d<U>( &mut self, name: U, v: Vec<Continuous>, ) -> Result<Table1DHandle<Continuous>, ModelErr>
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>
fn add_table_2d<U>( &mut self, name: U, v: Vec<Vec<Continuous>>, ) -> Result<Table2DHandle<Continuous>, ModelErr>
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>
fn add_table_3d<U>( &mut self, name: U, v: Vec<Vec<Vec<Continuous>>>, ) -> Result<Table3DHandle<Continuous>, ModelErr>
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>
fn add_table<U>( &mut self, name: U, map: FxHashMap<Vec<Element>, Continuous>, default: Continuous, ) -> Result<TableHandle<Continuous>, ModelErr>
Adds and returns a 3D table. Read more
source§impl TableInterface<i32> for TableRegistry
impl TableInterface<i32> for TableRegistry
source§fn add_table_1d<U>(
&mut self,
name: U,
v: Vec<Integer>,
) -> Result<Table1DHandle<Integer>, ModelErr>
fn add_table_1d<U>( &mut self, name: U, v: Vec<Integer>, ) -> Result<Table1DHandle<Integer>, ModelErr>
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>
fn add_table_2d<U>( &mut self, name: U, v: Vec<Vec<Integer>>, ) -> Result<Table2DHandle<Integer>, ModelErr>
Adds and returns a 2D table. Read more
source§impl TableInterface<usize> for TableRegistry
impl TableInterface<usize> for TableRegistry
source§fn add_table_1d<U>(
&mut self,
name: U,
v: Vec<Element>,
) -> Result<Table1DHandle<Element>, ModelErr>
fn add_table_1d<U>( &mut self, name: U, v: Vec<Element>, ) -> Result<Table1DHandle<Element>, ModelErr>
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>
fn add_table_2d<U>( &mut self, name: U, v: Vec<Vec<Element>>, ) -> Result<Table2DHandle<Element>, ModelErr>
Adds and returns a 2D table. Read more
impl StructuralPartialEq for TableRegistry
Auto Trait Implementations§
impl Freeze for TableRegistry
impl RefUnwindSafe for TableRegistry
impl Send for TableRegistry
impl Sync for TableRegistry
impl Unpin for TableRegistry
impl UnwindSafe for TableRegistry
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