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 PartialOrd for Point
impl PartialOrd for Point
Source§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
impl SupportsConstructor for Point
impl SupportsInstanceProperty for Point
impl SupportsStaticProperty 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§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
.