pub struct LawAxisRegistry;Expand description
Bidirectional mapping between LawAxis and LawAxisId.
Custom axes return None from axis_to_id — they contribute no bit.
Implementations§
Source§impl LawAxisRegistry
impl LawAxisRegistry
pub fn axis_to_id(axis: &LawAxis) -> Option<LawAxisId>
pub fn id_to_axis(id: LawAxisId) -> LawAxis
Auto Trait Implementations§
impl Freeze for LawAxisRegistry
impl RefUnwindSafe for LawAxisRegistry
impl Send for LawAxisRegistry
impl Sync for LawAxisRegistry
impl Unpin for LawAxisRegistry
impl UnsafeUnpin for LawAxisRegistry
impl UnwindSafe for LawAxisRegistry
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