pub enum DimensionKindKey<Other = Identifier> {
Overworld,
OverworldCaves,
TheEnd,
TheNether,
Other(Other),
}Variants§
Implementations§
Trait Implementations§
Source§impl<Other: Clone> Clone for DimensionKindKey<Other>
impl<Other: Clone> Clone for DimensionKindKey<Other>
Source§fn clone(&self) -> DimensionKindKey<Other>
fn clone(&self) -> DimensionKindKey<Other>
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 DataRegistryKey for DimensionKindKey
impl DataRegistryKey for DimensionKindKey
type Borrow<'a> = DimensionKindKey<&'a Identifier>
fn into_ident(self) -> Identifier
Source§impl<'a> DataRegistryKeyRef<'a> for DimensionKindKey<&'a Identifier>
impl<'a> DataRegistryKeyRef<'a> for DimensionKindKey<&'a Identifier>
type Owned = DimensionKindKey
fn to_owned(self) -> Self::Owned
fn from_ident(ident: &'a Identifier) -> Self
fn into_ident(self) -> Identifier
Source§impl<Other: Debug> Debug for DimensionKindKey<Other>
impl<Other: Debug> Debug for DimensionKindKey<Other>
Source§impl<'a> From<&'a Identifier> for DimensionKindKey<&'a Identifier>
impl<'a> From<&'a Identifier> for DimensionKindKey<&'a Identifier>
Source§fn from(ident: &'a Identifier) -> Self
fn from(ident: &'a Identifier) -> Self
Converts to this type from the input type.
Source§impl From<DimensionKindKey<&Identifier>> for Identifier
impl From<DimensionKindKey<&Identifier>> for Identifier
Source§fn from(registry: DimensionKindKey<&Identifier>) -> Self
fn from(registry: DimensionKindKey<&Identifier>) -> Self
Converts to this type from the input type.
Source§impl From<DimensionKindKey> for Identifier
impl From<DimensionKindKey> for Identifier
Source§fn from(registry: DimensionKindKey) -> Self
fn from(registry: DimensionKindKey) -> Self
Converts to this type from the input type.
Source§impl From<Identifier> for DimensionKindKey
impl From<Identifier> for DimensionKindKey
Source§fn from(ident: Identifier) -> Self
fn from(ident: Identifier) -> Self
Converts to this type from the input type.
Source§impl FromNbtTag for DimensionKindKey
impl FromNbtTag for DimensionKindKey
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl<Other: Hash> Hash for DimensionKindKey<Other>
impl<Other: Hash> Hash for DimensionKindKey<Other>
Source§impl<Other: PartialEq> PartialEq for DimensionKindKey<Other>
impl<Other: PartialEq> PartialEq for DimensionKindKey<Other>
impl<Other: Eq> Eq for DimensionKindKey<Other>
impl<Other> StructuralPartialEq for DimensionKindKey<Other>
Auto Trait Implementations§
impl<Other> Freeze for DimensionKindKey<Other>where
Other: Freeze,
impl<Other> RefUnwindSafe for DimensionKindKey<Other>where
Other: RefUnwindSafe,
impl<Other> Send for DimensionKindKey<Other>where
Other: Send,
impl<Other> Sync for DimensionKindKey<Other>where
Other: Sync,
impl<Other> Unpin for DimensionKindKey<Other>where
Other: Unpin,
impl<Other> UnwindSafe for DimensionKindKey<Other>where
Other: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.