pub struct SingletonEntity<S: Singleton>(/* private fields */);Implementations§
Trait Implementations§
Source§impl<S: Clone + Singleton> Clone for SingletonEntity<S>
impl<S: Clone + Singleton> Clone for SingletonEntity<S>
Source§fn clone(&self) -> SingletonEntity<S>
fn clone(&self) -> SingletonEntity<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: Singleton> Debug for SingletonEntity<S>
impl<S: Singleton> Debug for SingletonEntity<S>
Source§impl<'de, S: Singleton> Deserialize<'de> for SingletonEntity<S>
impl<'de, S: Singleton> Deserialize<'de> for SingletonEntity<S>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<S: Singleton> Entity for SingletonEntity<S>
impl<S: Singleton> Entity for SingletonEntity<S>
Source§impl<S: Singleton> PartialEq for SingletonEntity<S>
impl<S: Singleton> PartialEq for SingletonEntity<S>
Source§impl<S: Singleton> Serialize for SingletonEntity<S>
impl<S: Singleton> Serialize for SingletonEntity<S>
Source§impl<S: Singleton> Updatable<SingletonEntityUpdate<S>> for SingletonEntity<S>
impl<S: Singleton> Updatable<SingletonEntityUpdate<S>> for SingletonEntity<S>
Source§fn update(&mut self, with: &SingletonEntityUpdate<S>)
fn update(&mut self, with: &SingletonEntityUpdate<S>)
Update this value with data from
with.impl<S: Singleton> Eq for SingletonEntity<S>
Auto Trait Implementations§
impl<S> Freeze for SingletonEntity<S>where
S: Freeze,
impl<S> RefUnwindSafe for SingletonEntity<S>where
S: RefUnwindSafe,
impl<S> Send for SingletonEntity<S>
impl<S> Sync for SingletonEntity<S>
impl<S> Unpin for SingletonEntity<S>
impl<S> UnwindSafe for SingletonEntity<S>where
S: UnwindSafe,
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