pub struct TouchBarSegmentedControlOptions { /* private fields */ }
Implementations§
Source§impl TouchBarSegmentedControlOptions
impl TouchBarSegmentedControlOptions
pub fn new_with_values( change: Option<Function>, mode: Option<JsString>, segment_style: Option<JsString>, segments: Box<[JsValue]>, selected_index: Option<usize>, ) -> TouchBarSegmentedControlOptions
pub fn new(segments: Box<[JsValue]>) -> TouchBarSegmentedControlOptions
pub fn change(&self) -> Option<Function>
pub fn set_change(&mut self, value: Option<Function>)
pub fn mode(&self) -> Option<JsString>
pub fn set_mode(&mut self, value: Option<JsString>)
pub fn segment_style(&self) -> Option<JsString>
pub fn set_segment_style(&mut self, value: Option<JsString>)
pub fn segments(&self) -> Box<[JsValue]>
pub fn set_segments(&mut self, value: Box<[JsValue]>)
pub fn selected_index(&self) -> Option<usize>
pub fn set_selected_index(&mut self, value: Option<usize>)
Trait Implementations§
Source§impl Clone for TouchBarSegmentedControlOptions
impl Clone for TouchBarSegmentedControlOptions
Source§fn clone(&self) -> TouchBarSegmentedControlOptions
fn clone(&self) -> TouchBarSegmentedControlOptions
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 From<TouchBarSegmentedControlOptions> for JsValue
impl From<TouchBarSegmentedControlOptions> for JsValue
Source§fn from(value: TouchBarSegmentedControlOptions) -> Self
fn from(value: TouchBarSegmentedControlOptions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TouchBarSegmentedControlOptions
impl PartialEq for TouchBarSegmentedControlOptions
Source§fn eq(&self, other: &TouchBarSegmentedControlOptions) -> bool
fn eq(&self, other: &TouchBarSegmentedControlOptions) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl RefFromWasmAbi for TouchBarSegmentedControlOptions
impl RefFromWasmAbi for TouchBarSegmentedControlOptions
Source§type Anchor = RcRef<TouchBarSegmentedControlOptions>
type Anchor = RcRef<TouchBarSegmentedControlOptions>
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 TouchBarSegmentedControlOptions
impl VectorFromWasmAbi for TouchBarSegmentedControlOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: Self::Abi, ) -> Box<[TouchBarSegmentedControlOptions]>
Source§impl VectorIntoJsValue for TouchBarSegmentedControlOptions
impl VectorIntoJsValue for TouchBarSegmentedControlOptions
fn vector_into_jsvalue( vector: Box<[TouchBarSegmentedControlOptions]>, ) -> JsValue
Source§impl VectorIntoWasmAbi for TouchBarSegmentedControlOptions
impl VectorIntoWasmAbi for TouchBarSegmentedControlOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[TouchBarSegmentedControlOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for TouchBarSegmentedControlOptions
impl WasmDescribeVector for TouchBarSegmentedControlOptions
impl StructuralPartialEq for TouchBarSegmentedControlOptions
impl SupportsConstructor for TouchBarSegmentedControlOptions
impl SupportsInstanceProperty for TouchBarSegmentedControlOptions
impl SupportsStaticProperty for TouchBarSegmentedControlOptions
Auto Trait Implementations§
impl Freeze for TouchBarSegmentedControlOptions
impl RefUnwindSafe for TouchBarSegmentedControlOptions
impl !Send for TouchBarSegmentedControlOptions
impl !Sync for TouchBarSegmentedControlOptions
impl Unpin for TouchBarSegmentedControlOptions
impl UnwindSafe for TouchBarSegmentedControlOptions
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
.