pub struct FrameExpect {
pub width: Option<f64>,
pub height: Option<f64>,
pub x: Option<f64>,
pub y: Option<f64>,
pub relative_to: Option<String>,
pub tolerance: Option<f64>,
}Expand description
What Drive::assert_frame expects of an element’s frame, in points; only the fields set
are checked. x/y are relative to relative_to’s origin, or the window content’s.
Fields§
§width: Option<f64>§height: Option<f64>§x: Option<f64>§y: Option<f64>§relative_to: Option<String>The element whose origin x/y are measured from.
tolerance: Option<f64>How far each value may be off (default 1 point).
Trait Implementations§
Source§impl Clone for FrameExpect
impl Clone for FrameExpect
Source§fn clone(&self) -> FrameExpect
fn clone(&self) -> FrameExpect
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 FrameExpect
impl Debug for FrameExpect
Source§impl Default for FrameExpect
impl Default for FrameExpect
Source§fn default() -> FrameExpect
fn default() -> FrameExpect
Returns the “default value” for a type. Read more
Source§impl PartialEq for FrameExpect
impl PartialEq for FrameExpect
impl StructuralPartialEq for FrameExpect
Auto Trait Implementations§
impl Freeze for FrameExpect
impl RefUnwindSafe for FrameExpect
impl Send for FrameExpect
impl Sync for FrameExpect
impl Unpin for FrameExpect
impl UnsafeUnpin for FrameExpect
impl UnwindSafe for FrameExpect
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