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