struct RawGridPoint {
x: i32,
y: i32,
}Expand description
Mirrors GridPoint so try_from has an unchecked type to decode
into first — serde’s price for a validating decode.
Fields§
§x: i32§y: i32Trait Implementations§
Source§impl<'de> Deserialize<'de> for RawGridPoint
impl<'de> Deserialize<'de> for RawGridPoint
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 TryFrom<RawGridPoint> for GridPoint
impl TryFrom<RawGridPoint> for GridPoint
Source§type Error = OutOfExtent
type Error = OutOfExtent
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for RawGridPoint
impl RefUnwindSafe for RawGridPoint
impl Send for RawGridPoint
impl Sync for RawGridPoint
impl Unpin for RawGridPoint
impl UnsafeUnpin for RawGridPoint
impl UnwindSafe for RawGridPoint
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