Struct spider::features::chrome_common::ClipViewport
source · pub struct ClipViewport {
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
pub scale: f64,
}
Expand description
The view port clip for screenshots.
Fields§
§x: f64
X offset in device independent pixels (dip).
y: f64
Y offset in device independent pixels (dip).
width: f64
Rectangle width in device independent pixels (dip).
height: f64
Rectangle height in device independent pixels (dip).
scale: f64
Page scale factor.
Trait Implementations§
source§impl Clone for ClipViewport
impl Clone for ClipViewport
source§fn clone(&self) -> ClipViewport
fn clone(&self) -> ClipViewport
Returns a copy of the value. Read more
1.0.0 · 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 ClipViewport
impl Debug for ClipViewport
source§impl PartialEq for ClipViewport
impl PartialEq for ClipViewport
source§fn eq(&self, other: &ClipViewport) -> bool
fn eq(&self, other: &ClipViewport) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ClipViewport
Auto Trait Implementations§
impl Freeze for ClipViewport
impl RefUnwindSafe for ClipViewport
impl Send for ClipViewport
impl Sync for ClipViewport
impl Unpin for ClipViewport
impl UnwindSafe for ClipViewport
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