[−][src]Struct maomi::context::Context
Methods
impl<B: Backend> Context<B>
[src]
pub fn new(backend: B) -> Context<B>
[src]
pub fn new_prerendered<'a, 'b: 'a, C: 'static + PrerenderableComponent<'a, B>>(
backend: B,
prerendered_data: &'b [u8]
) -> Context<B>
[src]
backend: B,
prerendered_data: &'b [u8]
) -> Context<B>
pub fn prerender<'a, C: 'static + PrerenderableComponent<'a, B>>(
backend: B
) -> (Context<B>, Vec<u8>)
[src]
backend: B
) -> (Context<B>, Vec<u8>)
pub fn backend(&self) -> &B
[src]
pub fn root_component<C: 'static + Component<B>>(
&self
) -> Option<ComponentRc<B, C>>
[src]
&self
) -> Option<ComponentRc<B, C>>
pub fn new_root_component<C: 'static + Component<B>>(
&mut self
) -> ComponentRc<B, C>
[src]
&mut self
) -> ComponentRc<B, C>
pub fn set_root_component<C: 'static + Component<B>>(
&mut self,
component_node: ComponentRc<B, C>
)
[src]
&mut self,
component_node: ComponentRc<B, C>
)
Auto Trait Implementations
impl<B> !RefUnwindSafe for Context<B>
impl<B> !Send for Context<B>
impl<B> !Sync for Context<B>
impl<B> Unpin for Context<B>
impl<B> !UnwindSafe for Context<B>
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> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[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>,