pub struct DefaultEngine<ET>where
ET: EngineTypes,{
pub aux: EngineAux<ET>,
pub state: <ET as EngineTypes>::State,
pub filesystem: <ET as EngineTypes>::FileSystem,
pub fontsystem: <ET as EngineTypes>::FontSystem,
pub mouth: <ET as EngineTypes>::Mouth,
pub gullet: <ET as EngineTypes>::Gullet,
pub stomach: <ET as EngineTypes>::Stomach,
}
Expand description
Default implementation of a TeXEngine
for the provided EngineTypes
.
Fieldsยง
ยงaux: EngineAux<ET>
ยงstate: <ET as EngineTypes>::State
ยงfilesystem: <ET as EngineTypes>::FileSystem
ยงfontsystem: <ET as EngineTypes>::FontSystem
ยงmouth: <ET as EngineTypes>::Mouth
ยงgullet: <ET as EngineTypes>::Gullet
ยงstomach: <ET as EngineTypes>::Stomach
Trait Implementationsยง
Sourceยงimpl<ET> Default for DefaultEngine<ET>where
ET: EngineTypes,
impl<ET> Default for DefaultEngine<ET>where
ET: EngineTypes,
Sourceยงfn default() -> DefaultEngine<ET>
fn default() -> DefaultEngine<ET>
Returns the โdefault valueโ for a type. Read more
ยงimpl RusTeXEngineExt for DefaultEngine<Types>
impl RusTeXEngineExt for DefaultEngine<Types>
ยงimpl RusTeXEngineT for DefaultEngine<Types>
impl RusTeXEngineT for DefaultEngine<Types>
Sourceยงimpl<ET> TeXEngine for DefaultEngine<ET>where
ET: EngineTypes,
impl<ET> TeXEngine for DefaultEngine<ET>where
ET: EngineTypes,
type Types = ET
Sourceยงfn get_engine_refs(&mut self) -> EngineReferences<'_, ET>
fn get_engine_refs(&mut self) -> EngineReferences<'_, ET>
Returns mutable references to the components of the engine.
Sourceยงfn do_file_default<F>(
&mut self,
s: &str,
f: F,
) -> Result<(), TeXError<Self::Types>>
fn do_file_default<F>( &mut self, s: &str, f: F, ) -> Result<(), TeXError<Self::Types>>
Compile a
.tex
file. All finished pages are passed to the provided continuation. Read moreSourceยงfn initialize_tex_primitives(&mut self)
fn initialize_tex_primitives(&mut self)
Registers all primitives of plain TeX and sets the default variables.
Sourceยงfn initialize_plain_tex(&mut self) -> Result<(), TeXError<Self::Types>>
fn initialize_plain_tex(&mut self) -> Result<(), TeXError<Self::Types>>
Initialize the engine by processing
plain.tex
. Read moreSourceยงfn initialize_etex_primitives(&mut self)
fn initialize_etex_primitives(&mut self)
Registers all primitives of plain TeX, e-TeX and sets the default variables.
Sourceยงfn initialize_eplain_tex(&mut self) -> Result<(), TeXError<Self::Types>>
fn initialize_eplain_tex(&mut self) -> Result<(), TeXError<Self::Types>>
Initialize the engine by processing
eplain.tex
. Read moreSourceยงfn load_latex(&mut self) -> Result<(), TeXError<Self::Types>>
fn load_latex(&mut self) -> Result<(), TeXError<Self::Types>>
Initialized the engine by processing
latex.ltx
. Only call this (for modern LaTeX setups)
after calling initialize_etex_primitives
first. Read moreAuto Trait Implementationsยง
impl<ET> Freeze for DefaultEngine<ET>where
<ET as EngineTypes>::State: Freeze,
<ET as EngineTypes>::FileSystem: Freeze,
<ET as EngineTypes>::FontSystem: Freeze,
<ET as EngineTypes>::Mouth: Freeze,
<ET as EngineTypes>::Gullet: Freeze,
<ET as EngineTypes>::Stomach: Freeze,
<ET as EngineTypes>::ErrorHandler: Freeze,
<ET as EngineTypes>::Outputs: Freeze,
<ET as EngineTypes>::Extension: Freeze,
<<ET as EngineTypes>::CSName as CSName<<ET as EngineTypes>::Char>>::Handler: Freeze,
impl<ET> RefUnwindSafe for DefaultEngine<ET>where
<ET as EngineTypes>::State: RefUnwindSafe,
<ET as EngineTypes>::FileSystem: RefUnwindSafe,
<ET as EngineTypes>::FontSystem: RefUnwindSafe,
<ET as EngineTypes>::Mouth: RefUnwindSafe,
<ET as EngineTypes>::Gullet: RefUnwindSafe,
<ET as EngineTypes>::Stomach: RefUnwindSafe,
<ET as EngineTypes>::ErrorHandler: RefUnwindSafe,
<ET as EngineTypes>::Outputs: RefUnwindSafe,
<ET as EngineTypes>::Extension: RefUnwindSafe,
<<ET as EngineTypes>::CSName as CSName<<ET as EngineTypes>::Char>>::Handler: RefUnwindSafe,
<ET as EngineTypes>::Token: RefUnwindSafe,
impl<ET> Send for DefaultEngine<ET>where
<ET as EngineTypes>::State: Send,
<ET as EngineTypes>::FileSystem: Send,
<ET as EngineTypes>::FontSystem: Send,
<ET as EngineTypes>::Mouth: Send,
<ET as EngineTypes>::Gullet: Send,
<ET as EngineTypes>::Stomach: Send,
<ET as EngineTypes>::ErrorHandler: Send,
<ET as EngineTypes>::Outputs: Send,
<ET as EngineTypes>::Extension: Send,
<<ET as EngineTypes>::CSName as CSName<<ET as EngineTypes>::Char>>::Handler: Send,
impl<ET> !Sync for DefaultEngine<ET>
impl<ET> Unpin for DefaultEngine<ET>where
<ET as EngineTypes>::State: Unpin,
<ET as EngineTypes>::FileSystem: Unpin,
<ET as EngineTypes>::FontSystem: Unpin,
<ET as EngineTypes>::Mouth: Unpin,
<ET as EngineTypes>::Gullet: Unpin,
<ET as EngineTypes>::Stomach: Unpin,
<ET as EngineTypes>::ErrorHandler: Unpin,
<ET as EngineTypes>::Outputs: Unpin,
<ET as EngineTypes>::Extension: Unpin,
<<ET as EngineTypes>::CSName as CSName<<ET as EngineTypes>::Char>>::Handler: Unpin,
<ET as EngineTypes>::Token: Unpin,
impl<ET> UnwindSafe for DefaultEngine<ET>where
<ET as EngineTypes>::State: UnwindSafe,
<ET as EngineTypes>::FileSystem: UnwindSafe,
<ET as EngineTypes>::FontSystem: UnwindSafe,
<ET as EngineTypes>::Mouth: UnwindSafe,
<ET as EngineTypes>::Gullet: UnwindSafe,
<ET as EngineTypes>::Stomach: UnwindSafe,
<ET as EngineTypes>::ErrorHandler: UnwindSafe,
<ET as EngineTypes>::Outputs: UnwindSafe,
<ET as EngineTypes>::Extension: UnwindSafe,
<<ET as EngineTypes>::CSName as CSName<<ET as EngineTypes>::Char>>::Handler: UnwindSafe,
<ET as EngineTypes>::Token: UnwindSafe,
Blanket Implementationsยง
ยงimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
ยงtype ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
ยงfn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
ยงimpl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
ยงfn deserialize(
&self,
deserializer: &mut D,
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
ยงimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
ยงfn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.ยงfn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.ยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
โs vtable from &Trait
โs.ยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
โs vtable from &mut Trait
โs.ยงimpl<T> DowncastSend for T
impl<T> DowncastSend for T
ยงimpl<T> Instrument for T
impl<T> Instrument for T
ยงfn instrument(self, span: Span) -> Instrumented<Self> โ
fn instrument(self, span: Span) -> Instrumented<Self> โ
ยงfn in_current_span(self) -> Instrumented<Self> โ
fn in_current_span(self) -> Instrumented<Self> โ
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>
Converts
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>
Converts
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 moreSourceยงimpl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
ยงimpl<T> Pointable for T
impl<T> Pointable for T
ยงimpl<T> Pointee for T
impl<T> Pointee for T
ยงimpl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Sourceยงimpl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Sourceยงfn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.