#[repr(u32)]pub enum IntProviderKind {
Constant = 0,
Uniform = 1,
BiasedToBottom = 2,
Clamped = 3,
WeightedList = 4,
ClampedNormal = 5,
}
Variants§
Implementations§
Source§impl IntProviderKind
impl IntProviderKind
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl IntProviderKind
impl IntProviderKind
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 IntProviderKind
impl Clone for IntProviderKind
Source§fn clone(&self) -> IntProviderKind
fn clone(&self) -> IntProviderKind
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 IntProviderKind
impl Debug for IntProviderKind
Source§impl<'de> Deserialize<'de> for IntProviderKind
impl<'de> Deserialize<'de> for IntProviderKind
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 IntProviderKind
impl Display for IntProviderKind
Source§impl FromNbtTag for IntProviderKind
impl FromNbtTag for IntProviderKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for IntProviderKind
impl FromStr for IntProviderKind
Source§impl Hash for IntProviderKind
impl Hash for IntProviderKind
Source§impl McBufReadable for IntProviderKind
impl McBufReadable for IntProviderKind
Source§impl McBufWritable for IntProviderKind
impl McBufWritable for IntProviderKind
Source§impl PartialEq for IntProviderKind
impl PartialEq for IntProviderKind
Source§impl Registry for IntProviderKind
impl Registry for IntProviderKind
Source§impl Serialize for IntProviderKind
impl Serialize for IntProviderKind
Source§impl ToNbtTag for IntProviderKind
impl ToNbtTag for IntProviderKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for IntProviderKind
impl TryFrom<u32> for IntProviderKind
impl Copy for IntProviderKind
impl Eq for IntProviderKind
impl StructuralPartialEq for IntProviderKind
Auto Trait Implementations§
impl Freeze for IntProviderKind
impl RefUnwindSafe for IntProviderKind
impl Send for IntProviderKind
impl Sync for IntProviderKind
impl Unpin for IntProviderKind
impl UnwindSafe for IntProviderKind
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
)