Struct rdom::sandbox::Sandbox[][src]

pub struct Sandbox { /* fields omitted */ }

A sandbox represents a virtual browser tab. It contains a document and a window, as well as some configuration information for screen dimensions.

Implementations

impl Sandbox[src]

pub fn new(screen_metrics: ScreenMetrics) -> Arc<Sandbox>[src]

Creates a new sandbox (enclosure of a single DOM context)

pub fn window(&self) -> Arc<Window>[src]

Gets the root window object

pub fn builder<T: Buildable>(self: &Arc<Self>) -> Builder<T>[src]

Creates a builder for a specific type of node reference

Trait Implementations

impl Clone for Sandbox[src]

Auto Trait Implementations

impl RefUnwindSafe for Sandbox

impl Send for Sandbox

impl Sync for Sandbox

impl Unpin for Sandbox

impl UnwindSafe for Sandbox

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.