pub struct FreeRendererTemplate<'a> {
pub other: &'a Profile,
pub component: &'a LayoutComponent,
}Expand description
Renderer which does not require a bunch of junk to render.
Does not render profile-specific components properly. They will be replaced with their name.
Fields§
§other: &'a Profile§component: &'a LayoutComponentTrait Implementations§
Source§impl<'a> Display for FreeRendererTemplate<'a>
impl<'a> Display for FreeRendererTemplate<'a>
Source§impl<'a> IntoResponse for FreeRendererTemplate<'a>
impl<'a> IntoResponse for FreeRendererTemplate<'a>
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Source§impl<'a> Template for FreeRendererTemplate<'a>
impl<'a> Template for FreeRendererTemplate<'a>
Source§const SIZE_HINT: usize = 90usize
const SIZE_HINT: usize = 90usize
Provides a rough estimate of the expanded length of the rendered template. Larger
values result in higher memory usage but fewer reallocations. Smaller values result in the
opposite. This value only affects
render. It does not take effect when calling
render_into, write_into, the fmt::Display implementation, or the blanket
ToString::to_string implementation.Source§const MIME_TYPE: &'static str = "text/html; charset=utf-8"
const MIME_TYPE: &'static str = "text/html; charset=utf-8"
The MIME type (Content-Type) of the data that gets rendered by this Template
Source§fn render_into(&self, writer: &mut (impl Write + ?Sized)) -> Result<()>
fn render_into(&self, writer: &mut (impl Write + ?Sized)) -> Result<()>
Renders the template to the given
writer fmt bufferAuto Trait Implementations§
impl<'a> Freeze for FreeRendererTemplate<'a>
impl<'a> RefUnwindSafe for FreeRendererTemplate<'a>
impl<'a> Send for FreeRendererTemplate<'a>
impl<'a> Sync for FreeRendererTemplate<'a>
impl<'a> Unpin for FreeRendererTemplate<'a>
impl<'a> UnwindSafe for FreeRendererTemplate<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> DynTemplate for Twhere
T: Template,
impl<T> DynTemplate for Twhere
T: Template,
§fn dyn_render(&self) -> Result<String, Error>
fn dyn_render(&self) -> Result<String, Error>
Helper method which allocates a new
String and renders into it§fn dyn_render_into(&self, writer: &mut dyn Write) -> Result<(), Error>
fn dyn_render_into(&self, writer: &mut dyn Write) -> Result<(), Error>
Renders the template to the given
writer fmt buffer§fn dyn_write_into(&self, writer: &mut dyn Write) -> Result<(), Error>
fn dyn_write_into(&self, writer: &mut dyn Write) -> Result<(), Error>
Renders the template to the given
writer io buffer§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.