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