pub struct BroadcastableFloat(/* private fields */);Implementations§
Source§impl BroadcastableFloat
impl BroadcastableFloat
pub fn from_scalar(value: f64) -> Self
pub fn from_array(values: Vec<f64>) -> Self
Trait Implementations§
Source§impl From<BroadcastableFloat> for JsValue
impl From<BroadcastableFloat> for JsValue
Source§fn from(value: BroadcastableFloat) -> Self
fn from(value: BroadcastableFloat) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for BroadcastableFloat
impl FromWasmAbi for BroadcastableFloat
Source§impl IntoWasmAbi for BroadcastableFloat
impl IntoWasmAbi for BroadcastableFloat
Source§impl RefFromWasmAbi for BroadcastableFloat
impl RefFromWasmAbi for BroadcastableFloat
Source§type Anchor = RcRef<BroadcastableFloat>
type Anchor = RcRef<BroadcastableFloat>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl TryFromJsValue for BroadcastableFloat
impl TryFromJsValue for BroadcastableFloat
Source§impl VectorFromWasmAbi for BroadcastableFloat
impl VectorFromWasmAbi for BroadcastableFloat
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[BroadcastableFloat]>
Source§impl VectorIntoWasmAbi for BroadcastableFloat
impl VectorIntoWasmAbi for BroadcastableFloat
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[BroadcastableFloat]>) -> Self::Abi
Source§impl WasmDescribeVector for BroadcastableFloat
impl WasmDescribeVector for BroadcastableFloat
impl SupportsConstructor for BroadcastableFloat
impl SupportsInstanceProperty for BroadcastableFloat
impl SupportsStaticProperty for BroadcastableFloat
Auto Trait Implementations§
impl Freeze for BroadcastableFloat
impl RefUnwindSafe for BroadcastableFloat
impl Send for BroadcastableFloat
impl Sync for BroadcastableFloat
impl Unpin for BroadcastableFloat
impl UnwindSafe for BroadcastableFloat
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> 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> 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.