pub enum IsUsed {
Unused,
Used,
}
Expand description
Return type of event-handling methods
This type is convertible to/from bool
and supports the expected bit-wise
OR operator (a | b
, *a |= b
).
The type also implements negation with output type bool
, thus allowing
if is_used.into() { ... }
and if !is_used { ... }
. An implementation of
Deref
would be preferred, but the trait can only output a reference.
Variants§
Unused
Event was unused
Unused events may be used by a parent/ancestor widget or passed to another handler until used.
Used
Event is used, no other result
Trait Implementations§
source§impl BitOrAssign for IsUsed
impl BitOrAssign for IsUsed
source§fn bitor_assign(&mut self, rhs: IsUsed)
fn bitor_assign(&mut self, rhs: IsUsed)
Performs the
|=
operation. Read moresource§impl PartialEq for IsUsed
impl PartialEq for IsUsed
impl Copy for IsUsed
impl Eq for IsUsed
impl StructuralEq for IsUsed
impl StructuralPartialEq for IsUsed
Auto Trait Implementations§
impl RefUnwindSafe for IsUsed
impl Send for IsUsed
impl Sync for IsUsed
impl Unpin for IsUsed
impl UnwindSafe for IsUsed
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
§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
§fn cast_approx(self) -> T
fn cast_approx(self) -> T
§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
§fn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
§fn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
§fn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
§fn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.