pub struct FrameTile {
pub index: usize,
pub left: f64,
pub top: f64,
pub width: f64,
pub height: f64,
}Expand description
A single grid cell located inside the frame tree, with its bounding box
expressed in main-viewport coordinates (the iframe offset is already
summed in). index is the element’s 0-based position in the owning frame’s
querySelectorAll(selector) result, in document order.
Fields§
§index: usize0-based index within the owning frame’s match list (document order).
left: f64Left edge in main-viewport CSS pixels.
top: f64Top edge in main-viewport CSS pixels.
width: f64Width in CSS pixels.
height: f64Height in CSS pixels.
Implementations§
Trait Implementations§
impl Copy for FrameTile
impl StructuralPartialEq for FrameTile
Auto Trait Implementations§
impl Freeze for FrameTile
impl RefUnwindSafe for FrameTile
impl Send for FrameTile
impl Sync for FrameTile
impl Unpin for FrameTile
impl UnsafeUnpin for FrameTile
impl UnwindSafe for FrameTile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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