pub struct WidgetStatesConstraintRef(/* private fields */);Expand description
A shared, erased WidgetStatesConstraint (a Dart object reference).
The &, |, and ~ operators of the Dart mixin live here and on WidgetState, and
produce this type: WidgetState::Hovered & WidgetState::Focused, ~WidgetState::Disabled.
It derefs to the constraint for is_satisfied_by.
Implementations§
Source§impl WidgetStatesConstraintRef
impl WidgetStatesConstraintRef
Sourcepub fn new(constraint: impl WidgetStatesConstraint) -> WidgetStatesConstraintRef
pub fn new(constraint: impl WidgetStatesConstraint) -> WidgetStatesConstraintRef
Erases a constraint.
Trait Implementations§
Source§impl<R: Into<WidgetStatesConstraintRef>> BitAnd<R> for WidgetStatesConstraintRef
impl<R: Into<WidgetStatesConstraintRef>> BitAnd<R> for WidgetStatesConstraintRef
Source§fn bitand(self, other: R) -> WidgetStatesConstraintRef
fn bitand(self, other: R) -> WidgetStatesConstraintRef
Combines two WidgetStatesConstraint values using logical “and”.
Source§type Output = WidgetStatesConstraintRef
type Output = WidgetStatesConstraintRef
The resulting type after applying the
& operator.Source§impl<R: Into<WidgetStatesConstraintRef>> BitOr<R> for WidgetStatesConstraintRef
impl<R: Into<WidgetStatesConstraintRef>> BitOr<R> for WidgetStatesConstraintRef
Source§fn bitor(self, other: R) -> WidgetStatesConstraintRef
fn bitor(self, other: R) -> WidgetStatesConstraintRef
Combines two WidgetStatesConstraint values using logical “or”.
Source§type Output = WidgetStatesConstraintRef
type Output = WidgetStatesConstraintRef
The resulting type after applying the
| operator.Source§impl Clone for WidgetStatesConstraintRef
impl Clone for WidgetStatesConstraintRef
Source§impl Debug for WidgetStatesConstraintRef
impl Debug for WidgetStatesConstraintRef
Source§impl Deref for WidgetStatesConstraintRef
impl Deref for WidgetStatesConstraintRef
Source§type Target = dyn WidgetStatesConstraint
type Target = dyn WidgetStatesConstraint
The resulting type after dereferencing.
Source§fn deref(&self) -> &dyn WidgetStatesConstraint
fn deref(&self) -> &dyn WidgetStatesConstraint
Dereferences the value.
Source§impl Display for WidgetStatesConstraintRef
impl Display for WidgetStatesConstraintRef
Source§impl<C: WidgetStatesConstraint> From<C> for WidgetStatesConstraintRef
impl<C: WidgetStatesConstraint> From<C> for WidgetStatesConstraintRef
Source§fn from(constraint: C) -> WidgetStatesConstraintRef
fn from(constraint: C) -> WidgetStatesConstraintRef
Converts to this type from the input type.
Source§impl Not for WidgetStatesConstraintRef
impl Not for WidgetStatesConstraintRef
Source§fn not(self) -> WidgetStatesConstraintRef
fn not(self) -> WidgetStatesConstraintRef
Takes a WidgetStatesConstraint and applies the logical “not”.
Source§type Output = WidgetStatesConstraintRef
type Output = WidgetStatesConstraintRef
The resulting type after applying the
! operator.Auto Trait Implementations§
impl !RefUnwindSafe for WidgetStatesConstraintRef
impl !Send for WidgetStatesConstraintRef
impl !Sync for WidgetStatesConstraintRef
impl !UnwindSafe for WidgetStatesConstraintRef
impl Forget for WidgetStatesConstraintRef
impl Freeze for WidgetStatesConstraintRefwhere
*const RcInner<dyn WidgetStatesConstraint> is !null: Freeze,
PhantomData<RcInner<dyn WidgetStatesConstraint>>: Freeze,
impl Move for WidgetStatesConstraintRef
impl Unpin for WidgetStatesConstraintRef
impl UnsafeUnpin for WidgetStatesConstraintRefwhere
*const RcInner<dyn WidgetStatesConstraint> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn WidgetStatesConstraint>>: UnsafeUnpin,
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