[−][src]Struct dodrio::RenderContext
Common context available to all Render
implementations.
Notably, the RenderContext
gives access to the bump arena that the virtual
DOM should be allocated within. This is available via the bump
field.
Fields
bump: &'a Bump
The underlying bump arena that virtual DOMs are rendered into.
Example
use dodrio::RenderContext; // Given a rendering context, allocate an i32 inside its bump arena. fn foo<'a>(cx: &mut RenderContext<'a>) -> &'a mut i32 { cx.bump.alloc(42) }
Trait Implementations
impl<'_> Debug for RenderContext<'_>
[src]
impl<'a, 'b> From<&'b RenderContext<'a>> for &'a Bump
[src]
fn from(cx: &'b RenderContext<'a>) -> &'a Bump
[src]
impl<'a, 'b, 'c> From<&'c &'b mut RenderContext<'a>> for &'a Bump
[src]
fn from(cx: &'c &'b mut RenderContext<'a>) -> &'a Bump
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for RenderContext<'a>
impl<'a> !Send for RenderContext<'a>
impl<'a> !Sync for RenderContext<'a>
impl<'a> Unpin for RenderContext<'a>
impl<'a> !UnwindSafe for RenderContext<'a>
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,
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, 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.
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>,