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