pub struct Markup(pub Cow<'static, str>);Expand description
Pre-escaped HTML fragment. Do not double-escape when rendering.
Construct with Markup::from_static (zero-alloc for string literals) or
Markup::from(String) for dynamically-built HTML. Never pass user
controlled strings directly — escape them first with crate::attrs::escape_attr.
Tuple Fields§
§0: Cow<'static, str>Implementations§
Trait Implementations§
impl Eq for Markup
impl StructuralPartialEq for Markup
Auto Trait Implementations§
impl Freeze for Markup
impl RefUnwindSafe for Markup
impl Send for Markup
impl Sync for Markup
impl Unpin for Markup
impl UnsafeUnpin for Markup
impl UnwindSafe for Markup
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