Enum SpawnerEntry
#[non_exhaustive]pub enum SpawnerEntry {
Builtin(SpawnerKind),
Mod(SpawnerKey),
}Expand description
One entry of a level’s custom spawner list.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Builtin(SpawnerKind)
One of vanilla’s spawners.
Mod(SpawnerKey)
A mod’s spawner, ticked through custom_spawner_tick.
Trait Implementations§
§impl Clone for SpawnerEntry
impl Clone for SpawnerEntry
§fn clone(&self) -> SpawnerEntry
fn clone(&self) -> SpawnerEntry
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 SpawnerEntry
impl Debug for SpawnerEntry
impl Eq for SpawnerEntry
§impl Hash for SpawnerEntry
impl Hash for SpawnerEntry
§impl PartialEq for SpawnerEntry
impl PartialEq for SpawnerEntry
impl StructuralPartialEq for SpawnerEntry
Auto Trait Implementations§
impl Freeze for SpawnerEntry
impl RefUnwindSafe for SpawnerEntry
impl Send for SpawnerEntry
impl Sync for SpawnerEntry
impl Unpin for SpawnerEntry
impl UnsafeUnpin for SpawnerEntry
impl UnwindSafe for SpawnerEntry
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