pub struct FormatImage {
pub id: String,
pub profile: ProfileId,
pub packages: Vec<FormatPackage>,
pub state: FormatState,
}Expand description
Cached initialized macro/package state for an engine profile.
Fields§
§id: StringFormat identifier string.
profile: ProfileIdEngine profile this format targets.
packages: Vec<FormatPackage>Packages incorporated during format initialization.
state: FormatStateOpaque initialized state snapshot.
Implementations§
Source§impl FormatImage
impl FormatImage
Sourcepub fn empty(id: impl Into<String>, profile: ProfileId) -> Self
pub fn empty(id: impl Into<String>, profile: ProfileId) -> Self
Create an empty format image for early bootstrapping and tests.
Sourcepub fn with_snapshot(
id: impl Into<String>,
profile: ProfileId,
snapshot: FormatSnapshot,
) -> Self
pub fn with_snapshot( id: impl Into<String>, profile: ProfileId, snapshot: FormatSnapshot, ) -> Self
Create a format image wrapping an already-built structured snapshot.
Sourcepub fn initializer(
id: impl Into<String>,
profile: ProfileId,
) -> FormatInitializer
pub fn initializer( id: impl Into<String>, profile: ProfileId, ) -> FormatInitializer
Create a FormatInitializer builder for this format id and profile.
Sourcepub fn plain(profile: ProfileId) -> FormatInitializer
pub fn plain(profile: ProfileId) -> FormatInitializer
Start building the plain TeX format, the provider must supply plain.tex.
Sourcepub fn latex(profile: ProfileId) -> FormatInitializer
pub fn latex(profile: ProfileId) -> FormatInitializer
Start building the LaTeX format, the provider must supply latex.ltx.
Sourcepub fn instantiate_session_state(&self) -> SessionState
pub fn instantiate_session_state(&self) -> SessionState
Clone the format’s initialized state into a fresh mutable SessionState.
Trait Implementations§
Source§impl Clone for FormatImage
impl Clone for FormatImage
Source§fn clone(&self) -> FormatImage
fn clone(&self) -> FormatImage
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 FormatImage
impl Debug for FormatImage
impl Eq for FormatImage
Source§impl PartialEq for FormatImage
impl PartialEq for FormatImage
impl StructuralPartialEq for FormatImage
Auto Trait Implementations§
impl Freeze for FormatImage
impl RefUnwindSafe for FormatImage
impl Send for FormatImage
impl Sync for FormatImage
impl Unpin for FormatImage
impl UnsafeUnpin for FormatImage
impl UnwindSafe for FormatImage
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