#[repr(u32)]pub enum IntProviderKind {
Constant = 0,
Uniform = 1,
BiasedToBottom = 2,
Clamped = 3,
WeightedList = 4,
ClampedNormal = 5,
}
Variants§
Implementations§
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 AzaleaRead for IntProviderKind
impl AzaleaRead for IntProviderKind
Source§impl AzaleaWrite for IntProviderKind
impl AzaleaWrite for IntProviderKind
Source§impl Clone for IntProviderKind
impl Clone for IntProviderKind
Source§fn clone(&self) -> IntProviderKind
fn clone(&self) -> IntProviderKind
Returns a duplicate 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
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for IntProviderKind
Available on crate feature
serde
only.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 PartialEq for IntProviderKind
impl PartialEq for IntProviderKind
Source§impl Registry for IntProviderKind
impl Registry for IntProviderKind
Source§impl Serialize for IntProviderKind
Available on crate feature serde
only.
impl Serialize for IntProviderKind
Available on crate feature
serde
only.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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.