pub struct DomDetails { /* private fields */ }Expand description
Snapshot of per-node details plus the cascade inputs computed_style
needs. Rebuilt and published by the runtime each tick.
Implementations§
Source§impl DomDetails
impl DomDetails
Sourcepub fn new(
nodes: HashMap<u64, NodeDetail>,
sheet: Option<Arc<Stylesheet>>,
media: MediaContext,
) -> Self
pub fn new( nodes: HashMap<u64, NodeDetail>, sheet: Option<Arc<Stylesheet>>, media: MediaContext, ) -> Self
Build from a packed-handle-keyed detail map plus the live stylesheet and media context.
Sourcepub fn sheet(&self) -> Option<&Arc<Stylesheet>>
pub fn sheet(&self) -> Option<&Arc<Stylesheet>>
The live stylesheet the cascade re-resolver reads, if published.
Sourcepub fn media(&self) -> MediaContext
pub fn media(&self) -> MediaContext
The media context the cascade resolves @media against.
Trait Implementations§
Source§impl Default for DomDetails
impl Default for DomDetails
Source§fn default() -> DomDetails
fn default() -> DomDetails
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DomDetails
impl RefUnwindSafe for DomDetails
impl Send for DomDetails
impl Sync for DomDetails
impl Unpin for DomDetails
impl UnsafeUnpin for DomDetails
impl UnwindSafe for DomDetails
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<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates Self using default().
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.