Struct PrefixedState
pub struct PrefixedState<T: State> { /* private fields */ }Expand description
State with all accesses prefixed by the given key.
Implementations§
§impl<T: State> PrefixedState<T>
impl<T: State> PrefixedState<T>
pub fn new(inner: T, prefix: Key) -> Self
pub fn as_inner_mut(&mut self) -> &mut T
Trait Implementations§
§impl<T: State> StateR for PrefixedState<T>
impl<T: State> StateR for PrefixedState<T>
Auto Trait Implementations§
impl<T> Freeze for PrefixedState<T>where
T: Freeze,
impl<T> !RefUnwindSafe for PrefixedState<T>
impl<T> Send for PrefixedState<T>
impl<T> Sync for PrefixedState<T>
impl<T> Unpin for PrefixedState<T>where
T: Unpin,
impl<T> !UnwindSafe for PrefixedState<T>
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