pub struct SerHtmlFrag {
pub meta: &'static ElementMeta,
pub string: Arc<str>,
}Expand description
Serialized HTML fragment string. Can be included in
Node:s. Contains the metainformation about the outermost element
in the serialized fragment for dynamic DOM checking, and an
Arc<str> with the serialized data; SerHtmlFrag is thus
(reasonably) cheap to clone. This has pub fields for special
needs, be careful not to mis-use. The string needs to contain the
top-most tag in serialized form, too, and it should match the one
specified as meta.
Fields§
§meta: &'static ElementMeta§string: Arc<str>Implementations§
Source§impl SerHtmlFrag
impl SerHtmlFrag
pub fn meta(&self) -> &'static ElementMeta
pub fn as_str(&self) -> &str
pub fn as_arc_str(&self) -> Arc<str>
Trait Implementations§
Source§impl Clone for SerHtmlFrag
impl Clone for SerHtmlFrag
Source§fn clone(&self) -> SerHtmlFrag
fn clone(&self) -> SerHtmlFrag
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SerHtmlFrag
impl RefUnwindSafe for SerHtmlFrag
impl Send for SerHtmlFrag
impl Sync for SerHtmlFrag
impl Unpin for SerHtmlFrag
impl UnwindSafe for SerHtmlFrag
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