pub struct SegmentedControlSegment { /* private fields */ }Implementations§
Source§impl SegmentedControlSegment
impl SegmentedControlSegment
pub fn new( enabled: Option<bool>, icon: Option<NativeImage>, label: Option<JsString>, ) -> SegmentedControlSegment
pub fn enabled(&self) -> Option<bool>
pub fn set_enabled(&mut self, value: Option<bool>)
pub fn icon(&self) -> Option<NativeImage>
pub fn set_icon(&mut self, value: Option<NativeImage>)
pub fn label(&self) -> Option<JsString>
pub fn set_label(&mut self, value: Option<JsString>)
Trait Implementations§
Source§impl From<SegmentedControlSegment> for JsValue
impl From<SegmentedControlSegment> for JsValue
Source§fn from(value: SegmentedControlSegment) -> Self
fn from(value: SegmentedControlSegment) -> Self
Converts to this type from the input type.
Source§impl LongRefFromWasmAbi for SegmentedControlSegment
impl LongRefFromWasmAbi for SegmentedControlSegment
Source§type Abi = WasmPtr<WasmRefCell<SegmentedControlSegment>>
type Abi = WasmPtr<WasmRefCell<SegmentedControlSegment>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<SegmentedControlSegment>
type Anchor = RcRef<SegmentedControlSegment>
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 RefFromWasmAbi for SegmentedControlSegment
impl RefFromWasmAbi for SegmentedControlSegment
Source§type Abi = WasmPtr<WasmRefCell<SegmentedControlSegment>>
type Abi = WasmPtr<WasmRefCell<SegmentedControlSegment>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<SegmentedControlSegment>
type Anchor = RcRef<SegmentedControlSegment>
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 SegmentedControlSegment
impl RefMutFromWasmAbi for SegmentedControlSegment
Source§type Abi = WasmPtr<WasmRefCell<SegmentedControlSegment>>
type Abi = WasmPtr<WasmRefCell<SegmentedControlSegment>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<SegmentedControlSegment>
type Anchor = RcRefMut<SegmentedControlSegment>
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 SupportsConstructor for SegmentedControlSegment
impl SupportsInstanceProperty for SegmentedControlSegment
impl SupportsStaticProperty for SegmentedControlSegment
Source§impl VectorFromWasmAbi for SegmentedControlSegment
impl VectorFromWasmAbi for SegmentedControlSegment
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[SegmentedControlSegment]>
Source§impl VectorIntoWasmAbi for SegmentedControlSegment
impl VectorIntoWasmAbi for SegmentedControlSegment
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[SegmentedControlSegment]>) -> Self::Abi
Source§impl WasmDescribeVector for SegmentedControlSegment
impl WasmDescribeVector for SegmentedControlSegment
Auto Trait Implementations§
impl Freeze for SegmentedControlSegment
impl RefUnwindSafe for SegmentedControlSegment
impl Send for SegmentedControlSegment
impl Sync for SegmentedControlSegment
impl Unpin for SegmentedControlSegment
impl UnsafeUnpin for SegmentedControlSegment
impl UnwindSafe for SegmentedControlSegment
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> 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.