#[repr(u32)]pub enum TestInstanceKind {
BlockBased = 0,
Function = 1,
}
Variants§
Implementations§
Source§impl TestInstanceKind
impl TestInstanceKind
pub fn azalea_read_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl TestInstanceKind
impl TestInstanceKind
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 TestInstanceKind
impl AzaleaRead for TestInstanceKind
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl AzaleaWrite for TestInstanceKind
impl AzaleaWrite for TestInstanceKind
Source§impl Clone for TestInstanceKind
impl Clone for TestInstanceKind
Source§fn clone(&self) -> TestInstanceKind
fn clone(&self) -> TestInstanceKind
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 TestInstanceKind
impl Debug for TestInstanceKind
Source§impl<'de> Deserialize<'de> for TestInstanceKind
impl<'de> Deserialize<'de> for TestInstanceKind
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 TestInstanceKind
impl Display for TestInstanceKind
Source§impl FromNbtTag for TestInstanceKind
impl FromNbtTag for TestInstanceKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for TestInstanceKind
impl FromStr for TestInstanceKind
Source§impl Hash for TestInstanceKind
impl Hash for TestInstanceKind
Source§impl PartialEq for TestInstanceKind
impl PartialEq for TestInstanceKind
Source§impl Registry for TestInstanceKind
impl Registry for TestInstanceKind
Source§impl Serialize for TestInstanceKind
impl Serialize for TestInstanceKind
Source§impl ToNbtTag for TestInstanceKind
impl ToNbtTag for TestInstanceKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for TestInstanceKind
impl TryFrom<u32> for TestInstanceKind
impl Copy for TestInstanceKind
impl Eq for TestInstanceKind
impl StructuralPartialEq for TestInstanceKind
Auto Trait Implementations§
impl Freeze for TestInstanceKind
impl RefUnwindSafe for TestInstanceKind
impl Send for TestInstanceKind
impl Sync for TestInstanceKind
impl Unpin for TestInstanceKind
impl UnwindSafe for TestInstanceKind
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