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

Construct a new DomViewer with no interned referents.

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

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.