pub struct TrustedHtml(/* private fields */);Expand description
HTML the application vouches for, the only kind an Editor will render.
The document becomes innerHTML, so an event handler or script in it runs for the
reader. Constructing one is an explicit claim that the markup came from the
application’s own state or went through its sanitizer, never straight from storage
or another user.
Implementations§
Source§impl TrustedHtml
impl TrustedHtml
Trait Implementations§
Source§impl Clone for TrustedHtml
impl Clone for TrustedHtml
Source§impl Debug for TrustedHtml
impl Debug for TrustedHtml
Source§impl Default for TrustedHtml
impl Default for TrustedHtml
impl Eq for TrustedHtml
Source§impl PartialEq for TrustedHtml
impl PartialEq for TrustedHtml
impl StructuralPartialEq for TrustedHtml
Auto Trait Implementations§
impl Freeze for TrustedHtml
impl RefUnwindSafe for TrustedHtml
impl Send for TrustedHtml
impl Sync for TrustedHtml
impl Unpin for TrustedHtml
impl UnsafeUnpin for TrustedHtml
impl UnwindSafe for TrustedHtml
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.