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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,