Struct SpawnerKey
pub struct SpawnerKey(/* private fields */);Expand description
The identity of a mod’s spawner, namespace:path (mymod:rat_swarm), checked once where a
mod names it: what CustomSpawners::add takes and custom_spawner_tick hands back.
Implementations§
§impl SpawnerKey
impl SpawnerKey
Trait Implementations§
§impl Clone for SpawnerKey
impl Clone for SpawnerKey
§fn clone(&self) -> SpawnerKey
fn clone(&self) -> SpawnerKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for SpawnerKey
impl Debug for SpawnerKey
impl Eq for SpawnerKey
§impl Hash for SpawnerKey
impl Hash for SpawnerKey
§impl PartialEq for SpawnerKey
impl PartialEq for SpawnerKey
impl StructuralPartialEq for SpawnerKey
§impl TryFrom<String> for SpawnerKey
impl TryFrom<String> for SpawnerKey
§type Error = SpawnerError
type Error = SpawnerError
The type returned in the event of a conversion error.
§fn try_from(id: String) -> Result<SpawnerKey, SpawnerError>
fn try_from(id: String) -> Result<SpawnerKey, SpawnerError>
Performs the conversion.
§impl Wire for SpawnerKey
impl Wire for SpawnerKey
Auto Trait Implementations§
impl Freeze for SpawnerKey
impl RefUnwindSafe for SpawnerKey
impl Send for SpawnerKey
impl Sync for SpawnerKey
impl Unpin for SpawnerKey
impl UnsafeUnpin for SpawnerKey
impl UnwindSafe for SpawnerKey
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