pub struct TrustedHtmlBuf { /* private fields */ }Implementations§
Source§impl TrustedHtmlBuf
impl TrustedHtmlBuf
pub fn new(html: impl Into<String>) -> Self
pub fn from_trusted(html: TrustedHtml<'_>) -> Self
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl Clone for TrustedHtmlBuf
impl Clone for TrustedHtmlBuf
Source§fn clone(&self) -> TrustedHtmlBuf
fn clone(&self) -> TrustedHtmlBuf
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrustedHtmlBuf
impl Debug for TrustedHtmlBuf
Source§impl Display for TrustedHtmlBuf
impl Display for TrustedHtmlBuf
Source§impl FastWritable for TrustedHtmlBuf
impl FastWritable for TrustedHtmlBuf
Source§impl From<&str> for TrustedHtmlBuf
impl From<&str> for TrustedHtmlBuf
Source§impl From<String> for TrustedHtmlBuf
impl From<String> for TrustedHtmlBuf
Source§impl From<TrustedHtml<'_>> for TrustedHtmlBuf
impl From<TrustedHtml<'_>> for TrustedHtmlBuf
Source§fn from(value: TrustedHtml<'_>) -> Self
fn from(value: TrustedHtml<'_>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TrustedHtmlBuf
impl PartialEq for TrustedHtmlBuf
Source§fn eq(&self, other: &TrustedHtmlBuf) -> bool
fn eq(&self, other: &TrustedHtmlBuf) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TrustedHtmlBuf
impl HtmlSafe for TrustedHtmlBuf
impl StructuralPartialEq for TrustedHtmlBuf
Auto Trait Implementations§
impl Freeze for TrustedHtmlBuf
impl RefUnwindSafe for TrustedHtmlBuf
impl Send for TrustedHtmlBuf
impl Sync for TrustedHtmlBuf
impl Unpin for TrustedHtmlBuf
impl UnsafeUnpin for TrustedHtmlBuf
impl UnwindSafe for TrustedHtmlBuf
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