pub enum ScreenshotHeight {
Pixels(u32),
ViewportTimes(f64),
}Expand description
Height cap for screenshots attached to screenshot = true assert
steps: either an absolute pixel count or a multiple of the currently
applied viewport height.
Variants§
Pixels(u32)
Absolute height in pixels.
ViewportTimes(f64)
Multiple of the active viewport height (e.g. 2x = twice the
current viewport’s pixel height).
Implementations§
Trait Implementations§
Source§impl Clone for ScreenshotHeight
impl Clone for ScreenshotHeight
Source§impl Debug for ScreenshotHeight
impl Debug for ScreenshotHeight
Source§impl PartialEq for ScreenshotHeight
impl PartialEq for ScreenshotHeight
impl StructuralPartialEq for ScreenshotHeight
Auto Trait Implementations§
impl Freeze for ScreenshotHeight
impl RefUnwindSafe for ScreenshotHeight
impl Send for ScreenshotHeight
impl Sync for ScreenshotHeight
impl Unpin for ScreenshotHeight
impl UnsafeUnpin for ScreenshotHeight
impl UnwindSafe for ScreenshotHeight
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