pub struct Inspection {
pub node: Option<NodeId>,
pub element: String,
pub element_node: Option<NodeId>,
pub pseudo_element: Option<String>,
pub id: Option<String>,
pub classes: Vec<String>,
pub ancestors: Vec<Ancestor>,
pub page: Option<String>,
pub rules: Vec<MatchedRule>,
pub computed: BTreeMap<String, String>,
pub boxes: Vec<PageBox>,
}Expand description
What one element, or one page margin box, answers with.
Fields§
§node: Option<NodeId>The node the answer is about: the element or pseudo-element
asked about, or the element that holds the text node asked
about. None for a page margin box.
element: StringThe element name selectors match, or the margin box’s at-rule,
as @top-left. For a pseudo-element, the element it belongs
to.
element_node: Option<NodeId>That element, by its id: the same as node for an element, and
the element a pseudo-element belongs to. None for a page
margin box.
pseudo_element: Option<String>For a pseudo-element, its name as CSS writes it, as
::first-letter.
id: Option<String>The id a selector reaches the element by.
classes: Vec<String>The classes a selector reaches the element by.
ancestors: Vec<Ancestor>The elements this one sits inside, the book first.
page: Option<String>For a margin box, the page it is on as a page selector writes
it, as @page chapter:first:right.
rules: Vec<MatchedRule>The rules that matched, in cascade order. Where two set the same property, the later one wins.
computed: BTreeMap<String, String>The computed value of every property in the subset, written as CSS. Lengths are in points.
boxes: Vec<PageBox>The border box on each page the element reaches.
Trait Implementations§
Source§impl Clone for Inspection
impl Clone for Inspection
Source§fn clone(&self) -> Inspection
fn clone(&self) -> Inspection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Inspection
impl Debug for Inspection
Source§impl PartialEq for Inspection
impl PartialEq for Inspection
Source§impl Serialize for Inspection
impl Serialize for Inspection
impl StructuralPartialEq for Inspection
Auto Trait Implementations§
impl Freeze for Inspection
impl RefUnwindSafe for Inspection
impl Send for Inspection
impl Sync for Inspection
impl Unpin for Inspection
impl UnsafeUnpin for Inspection
impl UnwindSafe for Inspection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.