pub struct NativeExpect {
pub text: Option<String>,
pub number: Option<f64>,
pub checked: Option<bool>,
pub enabled: Option<bool>,
pub visible: Option<bool>,
}Expand description
What Drive::assert_native expects the native widget to report; only the fields set are
checked (docs/testing.md).
Fields§
§text: Option<String>The text the widget displays.
number: Option<f64>A slider’s or progress indicator’s value.
checked: Option<bool>A toggle’s state, or a button’s selected state.
enabled: Option<bool>Whether the widget takes input.
visible: Option<bool>Whether the widget is shown.
Trait Implementations§
Source§impl Clone for NativeExpect
impl Clone for NativeExpect
Source§fn clone(&self) -> NativeExpect
fn clone(&self) -> NativeExpect
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 NativeExpect
impl Debug for NativeExpect
Source§impl Default for NativeExpect
impl Default for NativeExpect
Source§fn default() -> NativeExpect
fn default() -> NativeExpect
Returns the “default value” for a type. Read more
Source§impl PartialEq for NativeExpect
impl PartialEq for NativeExpect
impl StructuralPartialEq for NativeExpect
Auto Trait Implementations§
impl Freeze for NativeExpect
impl RefUnwindSafe for NativeExpect
impl Send for NativeExpect
impl Sync for NativeExpect
impl Unpin for NativeExpect
impl UnsafeUnpin for NativeExpect
impl UnwindSafe for NativeExpect
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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> ErasedDestructor for Twhere
T: 'static,
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