pub struct State { /* private fields */ }Implementations§
Source§impl State
impl State
pub fn new() -> Self
pub const fn messages(&self) -> &MessageStorage
pub const fn messages_mut(&mut self) -> &mut MessageStorage
pub const fn resources(&self) -> &ResourceStorage
pub const fn resources_mut(&mut self) -> &mut ResourceStorage
pub const fn local_resources_mut(&mut self) -> &mut LocalResourceStorage
pub const fn local_resources(&self) -> &LocalResourceStorage
pub fn resource<R: Resource>(&self) -> &R
pub fn resource_mut<R: Resource>(&mut self) -> Option<&mut R>
pub fn local_resource<R: LocalResource>(&self) -> Option<&R>
pub fn local_resource_mut<R: LocalResource>(&mut self) -> Option<&mut R>
pub fn message_mut<M: Message>(&mut self) -> Option<&mut Messages<M>>
pub fn message<M: Message>(&self) -> Option<&Messages<M>>
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