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 · 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 RefFromWasmAbi for TouchBarColorPickerOptions
impl RefFromWasmAbi for TouchBarColorPickerOptions
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 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 VectorIntoJsValue for TouchBarColorPickerOptions
impl VectorIntoJsValue for TouchBarColorPickerOptions
fn vector_into_jsvalue(vector: Box<[TouchBarColorPickerOptions]>) -> JsValue
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
impl StructuralPartialEq for TouchBarColorPickerOptions
impl SupportsConstructor for TouchBarColorPickerOptions
impl SupportsInstanceProperty for TouchBarColorPickerOptions
impl SupportsStaticProperty 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 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::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
.