pub struct State { /* private fields */ }Implementations§
Source§impl State
impl State
pub fn new() -> State
pub const fn messages(&self) -> &MessageStorage
pub fn messages_mut(&mut self) -> &mut MessageStorage
pub const fn resources(&self) -> &ResourceStorage
pub fn resources_mut(&mut self) -> &mut ResourceStorage
pub fn resource<R>(&self) -> &Rwhere
R: Resource,
pub fn resource_mut<R>(&mut self) -> &mut Rwhere
R: Resource,
Sourcepub fn message_mut<M>(&mut self) -> &mut Messages<M>where
M: Message,
pub fn message_mut<M>(&mut self) -> &mut Messages<M>where
M: Message,
§Panics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl !RefUnwindSafe for State
impl !Send for State
impl !Sync for State
impl Unpin for State
impl !UnwindSafe for State
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