Struct paradox_typed_db::tables::PetComponentTable
source · pub struct PetComponentTable<'a> { /* private fields */ }
Expand description
Table PetComponent
See also: PetComponentTable
Implementations§
source§impl<'a> PetComponentTable<'a>
impl<'a> PetComponentTable<'a>
sourcepub fn get_col(&self, col: PetComponentColumn) -> Option<usize>
pub fn get_col(&self, col: PetComponentColumn) -> Option<usize>
Get the “real” index of the well-known column
sourcepub fn row_iter<'b>(&'b self) -> RowIter<'a, 'b, PetComponentRow<'a, 'b>> ⓘ
pub fn row_iter<'b>(&'b self) -> RowIter<'a, 'b, PetComponentRow<'a, 'b>> ⓘ
Iterate over all rows
sourcepub fn key_iter<'b: 'a>(
&'b self,
key: i32
) -> impl Iterator<Item = PetComponentRow<'a, 'b>>
pub fn key_iter<'b: 'a>( &'b self, key: i32 ) -> impl Iterator<Item = PetComponentRow<'a, 'b>>
Iterate over all rows that have a specific key
Trait Implementations§
source§impl<'a> Clone for PetComponentTable<'a>
impl<'a> Clone for PetComponentTable<'a>
source§fn clone(&self) -> PetComponentTable<'a>
fn clone(&self) -> PetComponentTable<'a>
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<'a> TypedTable<'a> for PetComponentTable<'a>
impl<'a> TypedTable<'a> for PetComponentTable<'a>
§type Column = PetComponentColumn
type Column = PetComponentColumn
The type representing one well-known column