#[non_exhaustive]pub struct ToggleDetail {
pub old_state: ToggleState,
pub new_state: ToggleState,
}Expand description
toggle event payload — emitted by <details> and
<dialog> when their open/closed state changes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.old_state: ToggleStateState before the toggle.
new_state: ToggleStateState after the toggle.
Implementations§
Source§impl ToggleDetail
impl ToggleDetail
Sourcepub const fn new(old_state: ToggleState, new_state: ToggleState) -> Self
pub const fn new(old_state: ToggleState, new_state: ToggleState) -> Self
A toggle payload (ToggleEventInit).
Trait Implementations§
Source§impl Clone for ToggleDetail
impl Clone for ToggleDetail
impl Copy for ToggleDetail
Source§impl Debug for ToggleDetail
impl Debug for ToggleDetail
impl Eq for ToggleDetail
Source§impl Hash for ToggleDetail
impl Hash for ToggleDetail
Source§impl PartialEq for ToggleDetail
impl PartialEq for ToggleDetail
impl StructuralPartialEq for ToggleDetail
Auto Trait Implementations§
impl Freeze for ToggleDetail
impl RefUnwindSafe for ToggleDetail
impl Send for ToggleDetail
impl Sync for ToggleDetail
impl Unpin for ToggleDetail
impl UnsafeUnpin for ToggleDetail
impl UnwindSafe for ToggleDetail
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