pub struct RawTextRefused {
pub tag: String,
pub at: usize,
}Expand description
The error HtmlSink::raw_text_element returns for content that holds the
closing tag of the element it would be written into.
The content of a <style> or a <script> is raw text: a browser reads
it character by character up to the element’s closing tag and reads no
character reference on the way, so nothing in it can be escaped, and the
only sequence that must not appear in it is that closing tag (</style or
</script, in any letter case, followed by anything). Content holding one
would end the element early and leave the rest of it in the page as markup.
It reports a mistake in the definition or in the configuration that
supplied the content, never anything a document can write. The HTML
backend reports it as
flm.html.definition-not-inlinable.
Fields§
§tag: StringThe element’s tag name, as the call gave it.
at: usizeThe byte offset, in the content, of the </ that begins the closing
tag found there.
Trait Implementations§
Source§impl Clone for RawTextRefused
impl Clone for RawTextRefused
Source§impl Debug for RawTextRefused
impl Debug for RawTextRefused
Source§impl Display for RawTextRefused
impl Display for RawTextRefused
impl Eq for RawTextRefused
Source§impl PartialEq for RawTextRefused
impl PartialEq for RawTextRefused
impl StructuralPartialEq for RawTextRefused
Auto Trait Implementations§
impl Forget for RawTextRefused
impl Freeze for RawTextRefused
impl Move for RawTextRefused
impl RefUnwindSafe for RawTextRefused
impl Send for RawTextRefused
impl Sync for RawTextRefused
impl Unpin for RawTextRefused
impl UnsafeUnpin for RawTextRefused
impl UnwindSafe for RawTextRefused
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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