#[repr(u32)]pub enum LootNbtProviderKind {
Storage = 0,
Context = 1,
}
Variants§
Implementations§
Source§impl LootNbtProviderKind
impl LootNbtProviderKind
pub fn azalea_read_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl LootNbtProviderKind
impl LootNbtProviderKind
Sourcepub unsafe fn from_u32_unchecked(id: u32) -> Self
pub unsafe fn from_u32_unchecked(id: u32) -> Self
pub fn is_valid_id(id: u32) -> bool
Trait Implementations§
Source§impl AzaleaRead for LootNbtProviderKind
impl AzaleaRead for LootNbtProviderKind
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl AzaleaWrite for LootNbtProviderKind
impl AzaleaWrite for LootNbtProviderKind
Source§impl Clone for LootNbtProviderKind
impl Clone for LootNbtProviderKind
Source§fn clone(&self) -> LootNbtProviderKind
fn clone(&self) -> LootNbtProviderKind
Returns a copy 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 Debug for LootNbtProviderKind
impl Debug for LootNbtProviderKind
Source§impl<'de> Deserialize<'de> for LootNbtProviderKind
impl<'de> Deserialize<'de> for LootNbtProviderKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for LootNbtProviderKind
impl Display for LootNbtProviderKind
Source§impl FromNbtTag for LootNbtProviderKind
impl FromNbtTag for LootNbtProviderKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for LootNbtProviderKind
impl FromStr for LootNbtProviderKind
Source§impl Hash for LootNbtProviderKind
impl Hash for LootNbtProviderKind
Source§impl PartialEq for LootNbtProviderKind
impl PartialEq for LootNbtProviderKind
Source§impl Registry for LootNbtProviderKind
impl Registry for LootNbtProviderKind
Source§impl Serialize for LootNbtProviderKind
impl Serialize for LootNbtProviderKind
Source§impl ToNbtTag for LootNbtProviderKind
impl ToNbtTag for LootNbtProviderKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for LootNbtProviderKind
impl TryFrom<u32> for LootNbtProviderKind
impl Copy for LootNbtProviderKind
impl Eq for LootNbtProviderKind
impl StructuralPartialEq for LootNbtProviderKind
Auto Trait Implementations§
impl Freeze for LootNbtProviderKind
impl RefUnwindSafe for LootNbtProviderKind
impl Send for LootNbtProviderKind
impl Sync for LootNbtProviderKind
impl Unpin for LootNbtProviderKind
impl UnwindSafe for LootNbtProviderKind
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