pub struct Context<const LAYER_COUNT: usize> { /* private fields */ }
Expand description
crate::key::Context for LayeredKey that tracks active layers.
Implementations§
Source§impl<const LAYER_COUNT: usize> Context<LAYER_COUNT>
impl<const LAYER_COUNT: usize> Context<LAYER_COUNT>
Sourcepub fn layer_state(&self) -> &[Activity; LAYER_COUNT]
pub fn layer_state(&self) -> &[Activity; LAYER_COUNT]
Get the active layers.
Trait Implementations§
impl<const LAYER_COUNT: usize> Copy for Context<LAYER_COUNT>
Auto Trait Implementations§
impl<const LAYER_COUNT: usize> Freeze for Context<LAYER_COUNT>
impl<const LAYER_COUNT: usize> RefUnwindSafe for Context<LAYER_COUNT>
impl<const LAYER_COUNT: usize> Send for Context<LAYER_COUNT>
impl<const LAYER_COUNT: usize> Sync for Context<LAYER_COUNT>
impl<const LAYER_COUNT: usize> Unpin for Context<LAYER_COUNT>
impl<const LAYER_COUNT: usize> UnwindSafe for Context<LAYER_COUNT>
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