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 new((x, y): (i16, i16)) -> 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§
impl Copy for NodeID
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
impl Eq for NodeID
Source§impl Ord for NodeID
impl Ord for NodeID
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for NodeID
impl PartialOrd 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 UnsafeUnpin 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