Struct simplify_rs::Point
source · pub struct Point {
pub x: f64,
pub y: f64,
}
Expand description
A 2D point
Fields§
§x: f64
§y: f64
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Point
impl<'de> Deserialize<'de> for Point
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 FromWasmAbi for Point
impl FromWasmAbi for Point
source§impl IntoWasmAbi for Point
impl IntoWasmAbi for Point
source§impl LongRefFromWasmAbi for Point
impl LongRefFromWasmAbi for Point
source§impl OptionFromWasmAbi for Point
impl OptionFromWasmAbi for Point
source§impl OptionIntoWasmAbi for Point
impl OptionIntoWasmAbi for Point
source§impl PartialEq for Point
impl PartialEq for Point
source§impl PartialOrd for Point
impl PartialOrd for Point
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 moresource§impl RefFromWasmAbi for Point
impl RefFromWasmAbi for Point
source§impl RefMutFromWasmAbi for Point
impl RefMutFromWasmAbi for Point
source§impl TryFromJsValue for Point
impl TryFromJsValue for Point
source§impl VectorFromWasmAbi for Point
impl VectorFromWasmAbi for Point
source§impl VectorIntoWasmAbi for Point
impl VectorIntoWasmAbi for Point
impl Copy for Point
impl StructuralPartialEq for Point
Auto Trait Implementations§
impl Freeze for Point
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnwindSafe for Point
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.