pub struct DisplayedExpect {
pub opacity: Option<f64>,
pub translation: Option<Point>,
pub width: Option<f64>,
pub height: Option<f64>,
pub background: Option<Color>,
pub tolerance: Option<f64>,
}Expand description
What Drive::assert_displayed expects an element to show at this moment; only the fields
set are checked (docs/testing.md). Unlike the other assertions this one is read once and
not retried: a value in flight is only right at the moment it is asked for.
Fields§
§opacity: Option<f64>The opacity shown, the element’s own times its ancestors’.
translation: Option<Point>The translation shown, in points: the element’s own plus its ancestors’.
width: Option<f64>The width of the frame shown, in points.
height: Option<f64>The height of the frame shown, in points.
background: Option<Color>The background color shown by the element or the nearest surface around it.
tolerance: Option<f64>How far each value may be off, in its own unit: opacity and color channels in 0..=1
(default 0.05), lengths in points (default 1).
Trait Implementations§
Source§impl Clone for DisplayedExpect
impl Clone for DisplayedExpect
Source§fn clone(&self) -> DisplayedExpect
fn clone(&self) -> DisplayedExpect
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 DisplayedExpect
impl Debug for DisplayedExpect
Source§impl Default for DisplayedExpect
impl Default for DisplayedExpect
Source§fn default() -> DisplayedExpect
fn default() -> DisplayedExpect
Returns the “default value” for a type. Read more
Source§impl PartialEq for DisplayedExpect
impl PartialEq for DisplayedExpect
impl StructuralPartialEq for DisplayedExpect
Auto Trait Implementations§
impl Forget for DisplayedExpect
impl Freeze for DisplayedExpect
impl Move for DisplayedExpect
impl RefUnwindSafe for DisplayedExpect
impl Send for DisplayedExpect
impl Sync for DisplayedExpect
impl Unpin for DisplayedExpect
impl UnsafeUnpin for DisplayedExpect
impl UnwindSafe for DisplayedExpect
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> 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