pub struct WidgetId { /* private fields */ }Expand description
A unique id for a widget
This value may outlive the widget, and will never compare equal to a value obtained from a different widget.
Trait Implementations§
Source§impl<P, T> From<&Widget<T, P>> for WidgetIdwhere
P: RenderPlatform,
T: WidgetContent<P>,
impl<P, T> From<&Widget<T, P>> for WidgetIdwhere
P: RenderPlatform,
T: WidgetContent<P>,
Source§impl From<&mut WidgetExtra<'_>> for WidgetId
impl From<&mut WidgetExtra<'_>> for WidgetId
Source§fn from(extra: &mut WidgetExtra<'_>) -> Self
fn from(extra: &mut WidgetExtra<'_>) -> Self
Converts to this type from the input type.
impl Eq for WidgetId
impl StructuralPartialEq for WidgetId
Auto Trait Implementations§
impl Freeze for WidgetId
impl !RefUnwindSafe for WidgetId
impl !Send for WidgetId
impl !Sync for WidgetId
impl Unpin for WidgetId
impl !UnwindSafe for WidgetId
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> ToggleButtonValue<()> for T
impl<T> ToggleButtonValue<()> for T
Source§fn get_value(&self, _extra: &WidgetExtra<'_>)
fn get_value(&self, _extra: &WidgetExtra<'_>)
Get the value associated with this toggle button content.
Source§impl<T> ToggleButtonValue<WidgetId> for T
impl<T> ToggleButtonValue<WidgetId> for T
Source§fn get_value(&self, extra: &WidgetExtra<'_>) -> WidgetId
fn get_value(&self, extra: &WidgetExtra<'_>) -> WidgetId
Get the value associated with this toggle button content.