pub struct ToggleSwitch { /* private fields */ }Implementations§
Source§impl ToggleSwitch
impl ToggleSwitch
pub fn new() -> Self
pub fn element_ref(self, reference: &ElementRef<Self>) -> Self
pub fn is_on(self, value: impl Into<Option<bool>>) -> Self
pub fn is_enabled(self, value: impl Into<Option<bool>>) -> Self
pub fn on_toggled(self, callback: impl IntoPayloadCallback<bool>) -> Self
Trait Implementations§
Source§impl Clone for ToggleSwitch
impl Clone for ToggleSwitch
Source§fn clone(&self) -> ToggleSwitch
fn clone(&self) -> ToggleSwitch
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 ToggleSwitch
impl Debug for ToggleSwitch
Source§impl Default for ToggleSwitch
impl Default for ToggleSwitch
Source§fn default() -> ToggleSwitch
fn default() -> ToggleSwitch
Returns the “default value” for a type. Read more
impl FocusControl for ToggleSwitch
Source§impl From<ToggleSwitch> for View
impl From<ToggleSwitch> for View
Source§fn from(value: ToggleSwitch) -> Self
fn from(value: ToggleSwitch) -> Self
Converts to this type from the input type.
Source§impl LayoutControl for ToggleSwitch
impl LayoutControl for ToggleSwitch
fn width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn opacity(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn horizontal_alignment(
self,
value: impl Into<Option<HorizontalAlignment>>,
) -> Selfwhere
Self: Sized,
fn vertical_alignment(self, value: impl Into<Option<VerticalAlignment>>) -> Selfwhere
Self: Sized,
fn margin(self, value: impl Into<Thickness>) -> Selfwhere
Self: Sized,
fn margin_optional<T>(self, value: Option<T>) -> Self
fn exit_transition(self, transition: ExitTransition) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ToggleSwitch
impl PartialEq for ToggleSwitch
impl ReferenceControl for ToggleSwitch
Source§impl SlotsControl for ToggleSwitch
impl SlotsControl for ToggleSwitch
impl StructuralPartialEq for ToggleSwitch
Auto Trait Implementations§
impl !RefUnwindSafe for ToggleSwitch
impl !Send for ToggleSwitch
impl !Sync for ToggleSwitch
impl !UnwindSafe for ToggleSwitch
impl Freeze for ToggleSwitch
impl Unpin for ToggleSwitch
impl UnsafeUnpin for ToggleSwitch
Blanket Implementations§
Source§impl<T> AutomationExt for Twhere
T: LayoutControl,
impl<T> AutomationExt for Twhere
T: LayoutControl,
fn automation_name(self, value: impl Into<String>) -> Self
fn automation_id(self, value: impl Into<String>) -> Self
fn automation_heading_level(self, value: AutomationHeadingLevel) -> Self
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