pub struct JsColor { /* private fields */ }Expand description
JavaScript-friendly wrapper for Color.
Implementations§
Trait Implementations§
Source§impl FromWasmAbi for JsColor
impl FromWasmAbi for JsColor
Source§impl IntoWasmAbi for JsColor
impl IntoWasmAbi for JsColor
Source§impl LongRefFromWasmAbi for JsColor
impl LongRefFromWasmAbi for JsColor
Source§impl OptionFromWasmAbi for JsColor
impl OptionFromWasmAbi for JsColor
Source§impl OptionIntoWasmAbi for JsColor
impl OptionIntoWasmAbi for JsColor
Source§impl RefFromWasmAbi for JsColor
impl RefFromWasmAbi for JsColor
Source§type Anchor = RcRef<JsColor>
type Anchor = RcRef<JsColor>
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§unsafe fn ref_from_abi(
js: <JsColor as RefFromWasmAbi>::Abi,
) -> <JsColor as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <JsColor as RefFromWasmAbi>::Abi, ) -> <JsColor as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for JsColor
impl RefMutFromWasmAbi for JsColor
Source§impl TryFromJsValue for JsColor
impl TryFromJsValue for JsColor
Source§impl VectorFromWasmAbi for JsColor
impl VectorFromWasmAbi for JsColor
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <JsColor as VectorFromWasmAbi>::Abi, ) -> Box<[JsColor]>
Source§impl VectorIntoWasmAbi for JsColor
impl VectorIntoWasmAbi for JsColor
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[JsColor]>, ) -> <JsColor as VectorIntoWasmAbi>::Abi
Auto Trait Implementations§
impl Freeze for JsColor
impl RefUnwindSafe for JsColor
impl Send for JsColor
impl Sync for JsColor
impl Unpin for JsColor
impl UnwindSafe for JsColor
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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.