pub struct JsVec3 {
pub x: f64,
pub y: f64,
pub z: f64,
}Expand description
A 3D vector exposed to JavaScript.
Fields§
§x: f64X component.
y: f64Y component.
z: f64Z component.
Implementations§
Trait Implementations§
impl Copy for JsVec3
Source§impl FromWasmAbi for JsVec3
impl FromWasmAbi for JsVec3
Source§impl IntoWasmAbi for JsVec3
impl IntoWasmAbi for JsVec3
Source§impl LongRefFromWasmAbi for JsVec3
impl LongRefFromWasmAbi for JsVec3
Source§impl OptionFromWasmAbi for JsVec3
impl OptionFromWasmAbi for JsVec3
Source§impl OptionIntoWasmAbi for JsVec3
impl OptionIntoWasmAbi for JsVec3
Source§impl RefFromWasmAbi for JsVec3
impl RefFromWasmAbi for JsVec3
Source§type Abi = WasmPtr<WasmRefCell<JsVec3>>
type Abi = WasmPtr<WasmRefCell<JsVec3>>
The Wasm ABI type references to
Self are recovered from.Source§impl RefMutFromWasmAbi for JsVec3
impl RefMutFromWasmAbi for JsVec3
impl SupportsConstructor for JsVec3
impl SupportsInstanceProperty for JsVec3
impl SupportsStaticProperty for JsVec3
Source§impl TryFromJsValue for JsVec3
impl TryFromJsValue for JsVec3
Source§impl VectorFromWasmAbi for JsVec3
impl VectorFromWasmAbi for JsVec3
Source§impl VectorIntoWasmAbi for JsVec3
impl VectorIntoWasmAbi for JsVec3
Auto Trait Implementations§
impl Freeze for JsVec3
impl RefUnwindSafe for JsVec3
impl Send for JsVec3
impl Sync for JsVec3
impl Unpin for JsVec3
impl UnsafeUnpin for JsVec3
impl UnwindSafe for JsVec3
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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::AbiSource§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.