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