pub enum StyleFile {
WhenNeeded,
Always,
}Expand description
When the style file is written: the value of the render option
style_file.
The style file (style) is the
.sty file written beside the recomposed LaTeX document, holding exactly
the package requests, character declarations and definitions that the
document needs to compile. A document that needs none of them (plain text
with no heading, label, reference, verbatim content or declared character)
needs no style file, unless its author asked for one through
extra_packages or
extra_preamble, whose
content is written only into the style file.
The regions stage (LatexRecomposedRegionsStage) reads this value.
Variants§
WhenNeeded
The style file is written only where it would hold something. A
document with no package request, no declared character, no definition
piece and no user definition, whose author set neither
extra_packages nor
extra_preamble, gets
no style artifact, and its recomposed LaTeX begins without the comment
line that gives the style file’s name. The default.
Always
The style file is always written, even where it holds nothing, for a host that expects a style file beside every recomposed output.
Implementations§
Trait Implementations§
impl Copy for StyleFile
Source§impl<'de> Deserialize<'de> for StyleFile
impl<'de> Deserialize<'de> for StyleFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for StyleFile
Source§impl JsonSchema for StyleFile
impl JsonSchema for StyleFile
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for StyleFile
Auto Trait Implementations§
impl Forget for StyleFile
impl Freeze for StyleFile
impl Move for StyleFile
impl RefUnwindSafe for StyleFile
impl Send for StyleFile
impl Sync for StyleFile
impl Unpin for StyleFile
impl UnsafeUnpin for StyleFile
impl UnwindSafe for StyleFile
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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