Struct EnchantmentDamageRegistry
#[non_exhaustive]pub struct EnchantmentDamageRegistry { /* private fields */ }Expand description
Engine-owned storage behind the startup registrar.
Trait Implementations§
§impl Default for EnchantmentDamageRegistry
impl Default for EnchantmentDamageRegistry
§fn default() -> EnchantmentDamageRegistry
fn default() -> EnchantmentDamageRegistry
Returns the “default value” for a type. Read more
§impl EnchantmentDamageEffects for EnchantmentDamageRegistry
impl EnchantmentDamageEffects for EnchantmentDamageRegistry
§fn register(
&mut self,
id: Identifier,
effect: Arc<dyn EnchantmentDamageEffect>,
) -> Result<(), String>
fn register( &mut self, id: Identifier, effect: Arc<dyn EnchantmentDamageEffect>, ) -> Result<(), String>
Register a non-vanilla identifier. Duplicate and vanilla identifiers are refused.
Auto Trait Implementations§
impl !RefUnwindSafe for EnchantmentDamageRegistry
impl !UnwindSafe for EnchantmentDamageRegistry
impl Freeze for EnchantmentDamageRegistry
impl Send for EnchantmentDamageRegistry
impl Sync for EnchantmentDamageRegistry
impl Unpin for EnchantmentDamageRegistry
impl UnsafeUnpin for EnchantmentDamageRegistry
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