pub struct BadgeStackState { /* private fields */ }Expand description
Estado mutable del BadgeStack.
Trackea qué badges están descartados (dismissed).
use hefesto_widgets::BadgeStackState;
let mut state = BadgeStackState::default();
state.dismiss(2);
assert!(!state.is_visible(2));Implementations§
Trait Implementations§
Source§impl Default for BadgeStackState
impl Default for BadgeStackState
Source§fn default() -> BadgeStackState
fn default() -> BadgeStackState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BadgeStackState
impl RefUnwindSafe for BadgeStackState
impl Send for BadgeStackState
impl Sync for BadgeStackState
impl Unpin for BadgeStackState
impl UnsafeUnpin for BadgeStackState
impl UnwindSafe for BadgeStackState
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more