pub struct IdRemap { /* private fields */ }Expand description
Dense-id remap produced by TabularData::project.
Maps original (source) variable ids onto contiguous projected ids 0..k-1.
Implementations§
Source§impl IdRemap
impl IdRemap
Sourcepub fn map(&self, old: VariableId) -> Result<VariableId, DataError>
pub fn map(&self, old: VariableId) -> Result<VariableId, DataError>
Map an original id to its projected dense id.
§Errors
DataError::UnknownVariable when old was not included in the projection.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IdRemap
impl RefUnwindSafe for IdRemap
impl Send for IdRemap
impl Sync for IdRemap
impl Unpin for IdRemap
impl UnsafeUnpin for IdRemap
impl UnwindSafe for IdRemap
Blanket Implementations§
impl<T> Allocation for T
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