RegistryDeserializesTo

Trait RegistryDeserializesTo 

Source
pub trait RegistryDeserializesTo: Deserialize {
    // Required method
    fn get_for_registry<'a>(
        registries: &'a RegistryHolder,
        registry_name: &'static str,
        protocol_id: u32,
    ) -> Option<(&'a Identifier, &'a Self)>;
}

Required Methods§

Source

fn get_for_registry<'a>( registries: &'a RegistryHolder, registry_name: &'static str, protocol_id: u32, ) -> Option<(&'a Identifier, &'a Self)>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RegistryDeserializesTo for NbtCompound

Source§

fn get_for_registry<'a>( registries: &'a RegistryHolder, registry_name: &'static str, protocol_id: u32, ) -> Option<(&'a Identifier, &'a Self)>

Implementors§