pub struct TouchBarScrubberOptions { /* private fields */ }Implementations§
Source§impl TouchBarScrubberOptions
impl TouchBarScrubberOptions
pub fn new_with_values( continuous: Option<bool>, highlight: Option<Function>, items: Box<[JsValue]>, mode: Option<JsString>, overlay_style: Option<JsString>, select: Option<Function>, selected_style: Option<JsString>, show_arrow_buttons: Option<bool>, ) -> TouchBarScrubberOptions
pub fn new(items: Box<[JsValue]>) -> TouchBarScrubberOptions
pub fn continuous(&self) -> Option<bool>
pub fn set_continuous(&mut self, value: Option<bool>)
pub fn highlight(&self) -> Option<Function>
pub fn set_highlight(&mut self, value: Option<Function>)
pub fn items(&self) -> Box<[JsValue]>
pub fn set_items(&mut self, value: Box<[JsValue]>)
pub fn mode(&self) -> Option<JsString>
pub fn set_mode(&mut self, value: Option<JsString>)
pub fn overlay_style(&self) -> Option<JsString>
pub fn set_overlay_style(&mut self, value: Option<JsString>)
pub fn select(&self) -> Option<Function>
pub fn set_select(&mut self, value: Option<Function>)
pub fn selected_style(&self) -> Option<JsString>
pub fn set_selected_style(&mut self, value: Option<JsString>)
Trait Implementations§
Source§impl Clone for TouchBarScrubberOptions
impl Clone for TouchBarScrubberOptions
Source§fn clone(&self) -> TouchBarScrubberOptions
fn clone(&self) -> TouchBarScrubberOptions
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 TouchBarScrubberOptions
impl Debug for TouchBarScrubberOptions
Source§impl From<TouchBarScrubberOptions> for JsValue
impl From<TouchBarScrubberOptions> for JsValue
Source§fn from(value: TouchBarScrubberOptions) -> Self
fn from(value: TouchBarScrubberOptions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TouchBarScrubberOptions
impl PartialEq for TouchBarScrubberOptions
Source§impl RefFromWasmAbi for TouchBarScrubberOptions
impl RefFromWasmAbi for TouchBarScrubberOptions
Source§type Anchor = RcRef<TouchBarScrubberOptions>
type Anchor = RcRef<TouchBarScrubberOptions>
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 TouchBarScrubberOptions
impl VectorFromWasmAbi for TouchBarScrubberOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[TouchBarScrubberOptions]>
Source§impl VectorIntoJsValue for TouchBarScrubberOptions
impl VectorIntoJsValue for TouchBarScrubberOptions
fn vector_into_jsvalue(vector: Box<[TouchBarScrubberOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for TouchBarScrubberOptions
impl VectorIntoWasmAbi for TouchBarScrubberOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[TouchBarScrubberOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for TouchBarScrubberOptions
impl WasmDescribeVector for TouchBarScrubberOptions
impl StructuralPartialEq for TouchBarScrubberOptions
impl SupportsConstructor for TouchBarScrubberOptions
impl SupportsInstanceProperty for TouchBarScrubberOptions
impl SupportsStaticProperty for TouchBarScrubberOptions
Auto Trait Implementations§
impl Freeze for TouchBarScrubberOptions
impl RefUnwindSafe for TouchBarScrubberOptions
impl !Send for TouchBarScrubberOptions
impl !Sync for TouchBarScrubberOptions
impl Unpin for TouchBarScrubberOptions
impl UnwindSafe for TouchBarScrubberOptions
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.