Struct material_yew::icon_button_toggle::IconButtonToggleProps [−][src]
pub struct IconButtonToggleProps { pub on: bool, pub on_icon: Cow<'static, str>, pub off_icon: Cow<'static, str>, pub label: Cow<'static, str>, pub disabled: bool, pub onchange: Callback<bool>, pub children: Children, }
Expand description
Fields
on: bool
on_icon: Cow<'static, str>
off_icon: Cow<'static, str>
label: Cow<'static, str>
disabled: bool
onchange: Callback<bool>
Binds to MDCIconButtonToggle:change
.
Callback’s parameter is the isOn
value passed
See events docs to learn more.
children: Children
Trait Implementations
impl Clone for IconButtonToggleProps
[src]
impl Clone for IconButtonToggleProps
[src]fn clone(&self) -> IconButtonToggleProps
[src]
fn clone(&self) -> IconButtonToggleProps
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for IconButtonToggleProps
[src]
impl Debug for IconButtonToggleProps
[src]impl Properties for IconButtonToggleProps
[src]
impl Properties for IconButtonToggleProps
[src]Auto Trait Implementations
impl !RefUnwindSafe for IconButtonToggleProps
impl !Send for IconButtonToggleProps
impl !Sync for IconButtonToggleProps
impl Unpin for IconButtonToggleProps
impl !UnwindSafe for IconButtonToggleProps
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T, V> IntoOptPropValue<V> for T where
T: IntoPropValue<Option<V>>,
[src]
impl<T, V> IntoOptPropValue<V> for T where
T: IntoPropValue<Option<V>>,
[src]pub fn into_opt_prop_value(self) -> Option<V>
[src]
pub fn into_opt_prop_value(self) -> Option<V>
[src]Convert self
to an optional value of a Properties
struct.
impl<T> IntoPropValue<Option<T>> for T
[src]
impl<T> IntoPropValue<Option<T>> for T
[src]pub fn into_prop_value(self) -> Option<T>
[src]
pub fn into_prop_value(self) -> Option<T>
[src]Convert self
to a value of a Properties
struct.
impl<T> IntoPropValue<T> for T
[src]
impl<T> IntoPropValue<T> for T
[src]pub fn into_prop_value(self) -> T
[src]
pub fn into_prop_value(self) -> T
[src]Convert self
to a value of a Properties
struct.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more