pub struct RuntimeUnitStorage<'a, D> { /* private fields */ }Implementations§
Source§impl<'a, D> RuntimeUnitStorage<'a, D>where
D: PartialEq,
impl<'a, D> RuntimeUnitStorage<'a, D>where
D: PartialEq,
pub fn new(units: &'a [RuntimeUnit<'a, D>]) -> RuntimeUnitStorage<'a, D>
pub fn get_first_unit_for_dimension( &self, dim: D, ) -> Option<&'a RuntimeUnit<'a, D>>
pub fn get_unit_by_symbol(&self, symbol: &str) -> Option<&'a RuntimeUnit<'a, D>>
Auto Trait Implementations§
impl<'a, D> Freeze for RuntimeUnitStorage<'a, D>
impl<'a, D> RefUnwindSafe for RuntimeUnitStorage<'a, D>where
D: RefUnwindSafe,
impl<'a, D> Send for RuntimeUnitStorage<'a, D>where
D: Sync,
impl<'a, D> Sync for RuntimeUnitStorage<'a, D>where
D: Sync,
impl<'a, D> Unpin for RuntimeUnitStorage<'a, D>
impl<'a, D> UnwindSafe for RuntimeUnitStorage<'a, D>where
D: RefUnwindSafe,
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