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>::StomachTrait 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>where
<ET as EngineTypes>::State: Sync,
<ET as EngineTypes>::FileSystem: Sync,
<ET as EngineTypes>::FontSystem: Sync,
<ET as EngineTypes>::Mouth: Sync,
<ET as EngineTypes>::Gullet: Sync,
<ET as EngineTypes>::Stomach: Sync,
<ET as EngineTypes>::ErrorHandler: Sync,
<ET as EngineTypes>::Outputs: Sync,
<ET as EngineTypes>::Extension: Sync,
<<ET as EngineTypes>::CSName as CSName<<ET as EngineTypes>::Char>>::Handler: Sync,
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ยง
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<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> DowncastSync for T
impl<T> DowncastSync for T
ยงimpl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
ยงimpl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
ยง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<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
ยงimpl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
ยงimpl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
ยงimpl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
ยงimpl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
ยงimpl<T> Pointable for T
impl<T> Pointable 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().ยงimpl<T> SerializableKey for T
impl<T> SerializableKey for T
ยงimpl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
ยงfn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
ยงfn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.