pub enum NotInlinablePart {
File {
path: String,
},
ClosingTag {
tag: String,
at: usize,
},
Table {
table: String,
},
}Expand description
The part of a style or script definition that could not be written into the
page, and why: the reason carried by DefinitionNotInlinable.
Three kinds of part cannot be written into the page: a file, a text holding the closing tag of the element it would be written into, and a part still naming the table that supplies its text.
Variants§
File
A part that is a file (DefContent::File). This library opens no
file: the host reads it and delivers its content itself, through the
render option definitions.
ClosingTag
A part of text holding the closing tag of the element it would be
written into (</style or </script), which would end that element
early and leave the rest of the definition in the page as markup.
Fields
Table
A part supplied by a table (DefContent::Table) that reached
the page as such: the resolve stage puts the table’s text in its place,
so only a definitions table built by other means holds one.
Implementations§
Trait Implementations§
Source§impl Clone for NotInlinablePart
impl Clone for NotInlinablePart
Source§impl Debug for NotInlinablePart
impl Debug for NotInlinablePart
Source§impl Display for NotInlinablePart
impl Display for NotInlinablePart
impl Eq for NotInlinablePart
Source§impl PartialEq for NotInlinablePart
impl PartialEq for NotInlinablePart
impl StructuralPartialEq for NotInlinablePart
Source§impl ToDiagnosticValue for NotInlinablePart
Diagnostic data: a map holding the kind token
and that case’s own facts (path, or tag and at), never the message
text, so that a test or a tool reading the data depends on no wording.
impl ToDiagnosticValue for NotInlinablePart
Diagnostic data: a map holding the kind token
and that case’s own facts (path, or tag and at), never the message
text, so that a test or a tool reading the data depends on no wording.
Source§fn to_diagnostic_value(&self) -> DiagnosticValue
fn to_diagnostic_value(&self) -> DiagnosticValue
Auto Trait Implementations§
impl Forget for NotInlinablePart
impl Freeze for NotInlinablePart
impl Move for NotInlinablePart
impl RefUnwindSafe for NotInlinablePart
impl Send for NotInlinablePart
impl Sync for NotInlinablePart
impl Unpin for NotInlinablePart
impl UnsafeUnpin for NotInlinablePart
impl UnwindSafe for NotInlinablePart
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