pub struct TouchBarLabelOptions { /* private fields */ }
Implementations§
Source§impl TouchBarLabelOptions
impl TouchBarLabelOptions
pub fn new_with_values( accessibility: Option<JsString>, label: Option<JsString>, text_color: Option<JsString>, ) -> TouchBarLabelOptions
pub fn new() -> TouchBarLabelOptions
pub fn accessibility(&self) -> Option<JsString>
pub fn set_accessibility(&mut self, value: Option<JsString>)
pub fn label(&self) -> Option<JsString>
pub fn set_label(&mut self, value: Option<JsString>)
pub fn text_color(&self) -> Option<JsString>
pub fn set_text_color(&mut self, value: Option<JsString>)
Trait Implementations§
Source§impl Clone for TouchBarLabelOptions
impl Clone for TouchBarLabelOptions
Source§fn clone(&self) -> TouchBarLabelOptions
fn clone(&self) -> TouchBarLabelOptions
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 TouchBarLabelOptions
impl Debug for TouchBarLabelOptions
Source§impl Default for TouchBarLabelOptions
impl Default for TouchBarLabelOptions
Source§fn default() -> TouchBarLabelOptions
fn default() -> TouchBarLabelOptions
Returns the “default value” for a type. Read more
Source§impl From<TouchBarLabelOptions> for JsValue
impl From<TouchBarLabelOptions> for JsValue
Source§fn from(value: TouchBarLabelOptions) -> Self
fn from(value: TouchBarLabelOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for TouchBarLabelOptions
impl FromWasmAbi for TouchBarLabelOptions
Source§impl IntoWasmAbi for TouchBarLabelOptions
impl IntoWasmAbi for TouchBarLabelOptions
Source§impl PartialEq for TouchBarLabelOptions
impl PartialEq for TouchBarLabelOptions
Source§impl RefFromWasmAbi for TouchBarLabelOptions
impl RefFromWasmAbi for TouchBarLabelOptions
Source§type Anchor = RcRef<TouchBarLabelOptions>
type Anchor = RcRef<TouchBarLabelOptions>
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 TouchBarLabelOptions
impl VectorFromWasmAbi for TouchBarLabelOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[TouchBarLabelOptions]>
Source§impl VectorIntoJsValue for TouchBarLabelOptions
impl VectorIntoJsValue for TouchBarLabelOptions
fn vector_into_jsvalue(vector: Box<[TouchBarLabelOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for TouchBarLabelOptions
impl VectorIntoWasmAbi for TouchBarLabelOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[TouchBarLabelOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for TouchBarLabelOptions
impl WasmDescribeVector for TouchBarLabelOptions
impl Eq for TouchBarLabelOptions
impl StructuralPartialEq for TouchBarLabelOptions
impl SupportsConstructor for TouchBarLabelOptions
impl SupportsInstanceProperty for TouchBarLabelOptions
impl SupportsStaticProperty for TouchBarLabelOptions
Auto Trait Implementations§
impl Freeze for TouchBarLabelOptions
impl RefUnwindSafe for TouchBarLabelOptions
impl !Send for TouchBarLabelOptions
impl !Sync for TouchBarLabelOptions
impl Unpin for TouchBarLabelOptions
impl UnwindSafe for TouchBarLabelOptions
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
.