#[repr(u32)]pub enum WorldgenMaterialRule {
Bandlands = 0,
Block = 1,
Sequence = 2,
Condition = 3,
}
Variants§
Implementations§
Source§impl WorldgenMaterialRule
impl WorldgenMaterialRule
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl WorldgenMaterialRule
impl WorldgenMaterialRule
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 Clone for WorldgenMaterialRule
impl Clone for WorldgenMaterialRule
Source§fn clone(&self) -> WorldgenMaterialRule
fn clone(&self) -> WorldgenMaterialRule
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 WorldgenMaterialRule
impl Debug for WorldgenMaterialRule
Source§impl<'de> Deserialize<'de> for WorldgenMaterialRule
impl<'de> Deserialize<'de> for WorldgenMaterialRule
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 WorldgenMaterialRule
impl Display for WorldgenMaterialRule
Source§impl FromNbtTag for WorldgenMaterialRule
impl FromNbtTag for WorldgenMaterialRule
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for WorldgenMaterialRule
impl FromStr for WorldgenMaterialRule
Source§impl Hash for WorldgenMaterialRule
impl Hash for WorldgenMaterialRule
Source§impl McBufReadable for WorldgenMaterialRule
impl McBufReadable for WorldgenMaterialRule
Source§impl McBufWritable for WorldgenMaterialRule
impl McBufWritable for WorldgenMaterialRule
Source§impl PartialEq for WorldgenMaterialRule
impl PartialEq for WorldgenMaterialRule
Source§impl Registry for WorldgenMaterialRule
impl Registry for WorldgenMaterialRule
Source§impl Serialize for WorldgenMaterialRule
impl Serialize for WorldgenMaterialRule
Source§impl ToNbtTag for WorldgenMaterialRule
impl ToNbtTag for WorldgenMaterialRule
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for WorldgenMaterialRule
impl TryFrom<u32> for WorldgenMaterialRule
impl Copy for WorldgenMaterialRule
impl Eq for WorldgenMaterialRule
impl StructuralPartialEq for WorldgenMaterialRule
Auto Trait Implementations§
impl Freeze for WorldgenMaterialRule
impl RefUnwindSafe for WorldgenMaterialRule
impl Send for WorldgenMaterialRule
impl Sync for WorldgenMaterialRule
impl Unpin for WorldgenMaterialRule
impl UnwindSafe for WorldgenMaterialRule
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)