Trait IntoMaybeErased

pub trait IntoMaybeErased {
    type Output: IntoMaybeErased;

    // Required method
    fn into_maybe_erased(self) -> Self::Output;
}
Expand description

A more general version of IntoAny that allows into AnyView, but also erasing other types that don’t implement RenderHtml like routing.

Required Associated Types§

type Output: IntoMaybeErased

The type of the output.

Required Methods§

fn into_maybe_erased(self) -> Self::Output

Converts the view into a type-erased view if in erased mode.

Implementations on Foreign Types§

§

impl IntoMaybeErased for AnyNestedRoute

§

type Output = AnyNestedRoute

§

fn into_maybe_erased(self) -> <AnyNestedRoute as IntoMaybeErased>::Output

§

impl<Segments, Children, Data, View> IntoMaybeErased for NestedRoute<Segments, Children, Data, View>
where NestedRoute<Segments, Children, Data, View>: MatchNestedRoutes + Send + Clone + 'static,

§

type Output = NestedRoute<Segments, Children, Data, View>

§

fn into_maybe_erased( self, ) -> <NestedRoute<Segments, Children, Data, View> as IntoMaybeErased>::Output

Implementors§

§

impl<T> IntoMaybeErased for T
where T: RenderHtml,

§

type Output = T