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 (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 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 LongRefFromWasmAbi for TouchBarScrubberOptions
impl LongRefFromWasmAbi for TouchBarScrubberOptions
Source§type Abi = WasmPtr<WasmRefCell<TouchBarScrubberOptions>>
type Abi = WasmPtr<WasmRefCell<TouchBarScrubberOptions>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<TouchBarScrubberOptions>
type Anchor = RcRef<TouchBarScrubberOptions>
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 TouchBarScrubberOptions
impl PartialEq for TouchBarScrubberOptions
Source§fn eq(&self, other: &TouchBarScrubberOptions) -> bool
fn eq(&self, other: &TouchBarScrubberOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefFromWasmAbi for TouchBarScrubberOptions
impl RefFromWasmAbi for TouchBarScrubberOptions
Source§type Abi = WasmPtr<WasmRefCell<TouchBarScrubberOptions>>
type Abi = WasmPtr<WasmRefCell<TouchBarScrubberOptions>>
The Wasm ABI type references to
Self are recovered from.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 RefMutFromWasmAbi for TouchBarScrubberOptions
impl RefMutFromWasmAbi for TouchBarScrubberOptions
Source§type Abi = WasmPtr<WasmRefCell<TouchBarScrubberOptions>>
type Abi = WasmPtr<WasmRefCell<TouchBarScrubberOptions>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<TouchBarScrubberOptions>
type Anchor = RcRefMut<TouchBarScrubberOptions>
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 TouchBarScrubberOptions
impl SupportsConstructor for TouchBarScrubberOptions
impl SupportsInstanceProperty for TouchBarScrubberOptions
impl SupportsStaticProperty for TouchBarScrubberOptions
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 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
Auto Trait Implementations§
impl Freeze for TouchBarScrubberOptions
impl RefUnwindSafe for TouchBarScrubberOptions
impl Send for TouchBarScrubberOptions
impl Sync for TouchBarScrubberOptions
impl Unpin for TouchBarScrubberOptions
impl UnsafeUnpin 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.