pub struct ToggleChanged {
pub entity: Entity,
pub checked: bool,
}Expand description
Emitted after a Toggleable flips its checked state in response to
user input. Carries the entity and the new value.
Fields§
§entity: EntityAffected entity.
checked: boolNew checked state.
Trait Implementations§
Source§impl Clone for ToggleChanged
impl Clone for ToggleChanged
Source§fn clone(&self) -> ToggleChanged
fn clone(&self) -> ToggleChanged
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 ToggleChanged
impl Debug for ToggleChanged
impl Copy for ToggleChanged
impl Message for ToggleChanged
Auto Trait Implementations§
impl Freeze for ToggleChanged
impl RefUnwindSafe for ToggleChanged
impl Send for ToggleChanged
impl Sync for ToggleChanged
impl Unpin for ToggleChanged
impl UnsafeUnpin for ToggleChanged
impl UnwindSafe for ToggleChanged
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,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.