Struct rbx_dom_weak::DomViewer [−][src]
pub struct DomViewer { /* fields omitted */ }
Expand description
Contains state for viewing and redacting nondeterministic portions of WeakDom objects, making them suitable for usage in snapshot tests.
DomViewer
can be held onto and used with a DOM multiple times. IDs will
persist when viewing the same instance multiple times, and should stay the
same across multiple runs of a test.
Implementations
View the given WeakDom
, creating a ViewedInstance
object that can be
used in a snapshot test.
View the children of the root instance of the given WeakDom
, returning
them as a Vec<ViewedInstance>
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DomViewer
impl UnwindSafe for DomViewer