pub struct Class<C, R>where
C: IntoClass<R>,
R: DomRenderer,{ /* private fields */ }Trait Implementations§
source§impl<C, R> Attribute<R> for Class<C, R>where
C: IntoClass<R>,
R: DomRenderer,
impl<C, R> Attribute<R> for Class<C, R>where
C: IntoClass<R>,
R: DomRenderer,
const MIN_LENGTH: usize = C::MIN_LENGTH
type State = <C as IntoClass<R>>::State
fn html_len(&self) -> usize
fn to_html( self, _buf: &mut String, class: &mut String, _style: &mut String, _inner_html: &mut String )
fn hydrate<const FROM_SERVER: bool>(self, el: &R::Element) -> Self::State
fn build(self, el: &R::Element) -> Self::State
fn rebuild(self, state: &mut Self::State)
source§impl<C, R> NextAttribute<R> for Class<C, R>where
C: IntoClass<R>,
R: DomRenderer,
impl<C, R> NextAttribute<R> for Class<C, R>where
C: IntoClass<R>,
R: DomRenderer,
source§impl<C, R> ToTemplate for Class<C, R>where
C: IntoClass<R>,
R: DomRenderer,
impl<C, R> ToTemplate for Class<C, R>where
C: IntoClass<R>,
R: DomRenderer,
const CLASS: &'static str = C::TEMPLATE
source§fn to_template(
_buf: &mut String,
class: &mut String,
_style: &mut String,
_inner_html: &mut String,
_position: &mut Position
)
fn to_template( _buf: &mut String, class: &mut String, _style: &mut String, _inner_html: &mut String, _position: &mut Position )
Renders a view type to a template. This does not take actual view data,
but can be used for constructing part of an HTML
<template> that corresponds
to a view of a particular type.const TEMPLATE: &'static str = ""
const STYLE: &'static str = ""
const LEN: usize = _
Auto Trait Implementations§
impl<C, R> Freeze for Class<C, R>where
C: Freeze,
impl<C, R> RefUnwindSafe for Class<C, R>where
C: RefUnwindSafe,
R: RefUnwindSafe,
impl<C, R> Send for Class<C, R>
impl<C, R> Sync for Class<C, R>
impl<C, R> Unpin for Class<C, R>
impl<C, R> UnwindSafe for Class<C, R>where
C: UnwindSafe,
R: UnwindSafe,
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
source§impl<T, R> IntoAnyAttribute<R> for T
impl<T, R> IntoAnyAttribute<R> for T
fn into_any_attr(self) -> AnyAttribute<R>
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