pub struct TouchBarColorPickerOptions { /* private fields */ }Implementations§
Source§impl TouchBarColorPickerOptions
impl TouchBarColorPickerOptions
pub fn new_with_values( available_colors: Option<Box<[JsValue]>>, change: Option<Function>, selected_color: Option<JsString>, ) -> TouchBarColorPickerOptions
pub fn new() -> TouchBarColorPickerOptions
pub fn available_colors(&self) -> Option<Box<[JsValue]>>
pub fn set_available_colors(&mut self, value: Option<Box<[JsValue]>>)
pub fn change(&self) -> Option<Function>
pub fn set_change(&mut self, value: Option<Function>)
pub fn selected_color(&self) -> Option<JsString>
pub fn set_selected_color(&mut self, value: Option<JsString>)
Trait Implementations§
Source§impl Clone for TouchBarColorPickerOptions
impl Clone for TouchBarColorPickerOptions
Source§fn clone(&self) -> TouchBarColorPickerOptions
fn clone(&self) -> TouchBarColorPickerOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TouchBarColorPickerOptions
impl Debug for TouchBarColorPickerOptions
Source§impl Default for TouchBarColorPickerOptions
impl Default for TouchBarColorPickerOptions
Source§fn default() -> TouchBarColorPickerOptions
fn default() -> TouchBarColorPickerOptions
Returns the “default value” for a type. Read more
Source§impl From<TouchBarColorPickerOptions> for JsValue
impl From<TouchBarColorPickerOptions> for JsValue
Source§fn from(value: TouchBarColorPickerOptions) -> Self
fn from(value: TouchBarColorPickerOptions) -> Self
Converts to this type from the input type.
Source§impl LongRefFromWasmAbi for TouchBarColorPickerOptions
impl LongRefFromWasmAbi for TouchBarColorPickerOptions
Source§type Abi = WasmPtr<WasmRefCell<TouchBarColorPickerOptions>>
type Abi = WasmPtr<WasmRefCell<TouchBarColorPickerOptions>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<TouchBarColorPickerOptions>
type Anchor = RcRef<TouchBarColorPickerOptions>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl PartialEq for TouchBarColorPickerOptions
impl PartialEq for TouchBarColorPickerOptions
Source§fn eq(&self, other: &TouchBarColorPickerOptions) -> bool
fn eq(&self, other: &TouchBarColorPickerOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefFromWasmAbi for TouchBarColorPickerOptions
impl RefFromWasmAbi for TouchBarColorPickerOptions
Source§type Abi = WasmPtr<WasmRefCell<TouchBarColorPickerOptions>>
type Abi = WasmPtr<WasmRefCell<TouchBarColorPickerOptions>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<TouchBarColorPickerOptions>
type Anchor = RcRef<TouchBarColorPickerOptions>
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 RefMutFromWasmAbi for TouchBarColorPickerOptions
impl RefMutFromWasmAbi for TouchBarColorPickerOptions
Source§type Abi = WasmPtr<WasmRefCell<TouchBarColorPickerOptions>>
type Abi = WasmPtr<WasmRefCell<TouchBarColorPickerOptions>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<TouchBarColorPickerOptions>
type Anchor = RcRefMut<TouchBarColorPickerOptions>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl StructuralPartialEq for TouchBarColorPickerOptions
impl SupportsConstructor for TouchBarColorPickerOptions
impl SupportsInstanceProperty for TouchBarColorPickerOptions
impl SupportsStaticProperty for TouchBarColorPickerOptions
Source§impl VectorFromWasmAbi for TouchBarColorPickerOptions
impl VectorFromWasmAbi for TouchBarColorPickerOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[TouchBarColorPickerOptions]>
Source§impl VectorIntoWasmAbi for TouchBarColorPickerOptions
impl VectorIntoWasmAbi for TouchBarColorPickerOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[TouchBarColorPickerOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for TouchBarColorPickerOptions
impl WasmDescribeVector for TouchBarColorPickerOptions
Auto Trait Implementations§
impl Freeze for TouchBarColorPickerOptions
impl RefUnwindSafe for TouchBarColorPickerOptions
impl Send for TouchBarColorPickerOptions
impl Sync for TouchBarColorPickerOptions
impl Unpin for TouchBarColorPickerOptions
impl UnsafeUnpin for TouchBarColorPickerOptions
impl UnwindSafe for TouchBarColorPickerOptions
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::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.