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 RefFromWasmAbi for SegmentedControlSegment
impl RefFromWasmAbi for SegmentedControlSegment
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 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 VectorIntoJsValue for SegmentedControlSegment
impl VectorIntoJsValue for SegmentedControlSegment
fn vector_into_jsvalue(vector: Box<[SegmentedControlSegment]>) -> JsValue
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
impl SupportsConstructor for SegmentedControlSegment
impl SupportsInstanceProperty for SegmentedControlSegment
impl SupportsStaticProperty 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 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::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
.