Struct entropy_base::grid::NodeID
source · pub struct NodeID(/* private fields */);Implementations§
source§impl NodeID
impl NodeID
pub const UP_LEFT: Self = _
pub const UP_MIDDLE: Self = _
pub const UP_RIGHT: Self = _
pub const LEFT_MIDDLE: Self = _
pub const SITU: Self = _
pub const ORIGIN: Self = _
pub const RIGHT_MIDDLE: Self = _
pub const DOWN_LEFT: Self = _
pub const DOWN_MIDDLE: Self = _
pub const DOWN_RIGHT: Self = _
pub fn from_i32(value: i32) -> Self
pub fn from_xy(x: i16, y: i16) -> Self
pub fn into_tuple(self) -> (i16, i16)
pub fn into_i32(self) -> i32
pub fn into_flat(self) -> FlatID
Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeID
impl<'de> Deserialize<'de> for NodeID
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 Ord for NodeID
impl Ord for NodeID
source§impl PartialEq for NodeID
impl PartialEq for NodeID
source§impl PartialOrd for NodeID
impl PartialOrd for NodeID
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for NodeID
impl Eq for NodeID
impl StructuralPartialEq for NodeID
Auto Trait Implementations§
impl Freeze for NodeID
impl RefUnwindSafe for NodeID
impl Send for NodeID
impl Sync for NodeID
impl Unpin for NodeID
impl UnwindSafe for NodeID
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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)