pub struct TexCore { /* private fields */ }Expand description
Translation target for Web2C/C2Rust code with profile differences applied as patches.
Implementations§
Source§impl TexCore
impl TexCore
Sourcepub const fn tex(profile: ProfileId) -> Self
pub const fn tex(profile: ProfileId) -> Self
Constructs a plain TeX TexCore with no patches applied.
Sourcepub const fn with_patch(self, patch: EnginePatch) -> Self
pub const fn with_patch(self, patch: EnginePatch) -> Self
Returns a new TexCore with the given patch applied, updating all dependent fields.
Sourcepub const fn kind(&self) -> EngineKind
pub const fn kind(&self) -> EngineKind
Returns the engine kind.
Sourcepub const fn primitives(&self) -> &'static [PrimitiveSpec]
pub const fn primitives(&self) -> &'static [PrimitiveSpec]
Returns the primitive list for this core.
Sourcepub const fn catcode_defaults(&self) -> CatcodeDefaults
pub const fn catcode_defaults(&self) -> CatcodeDefaults
Returns the category code defaults.
Sourcepub const fn mathcode_defaults(&self) -> MathcodeDefaults
pub const fn mathcode_defaults(&self) -> MathcodeDefaults
Returns the math code defaults.
Sourcepub const fn register_defaults(&self) -> RegisterDefaults
pub const fn register_defaults(&self) -> RegisterDefaults
Returns the register count defaults.
Sourcepub const fn font_semantics(&self) -> FontSemantics
pub const fn font_semantics(&self) -> FontSemantics
Returns the font semantics.
Sourcepub const fn extension_policy(&self) -> ExtensionPolicy
pub const fn extension_policy(&self) -> ExtensionPolicy
Returns the extension policy.
Sourcepub const fn patches(&self) -> EnginePatches
pub const fn patches(&self) -> EnginePatches
Returns the active patch flags.
Sourcepub const fn has_patch(&self, patch: EnginePatch) -> bool
pub const fn has_patch(&self, patch: EnginePatch) -> bool
Returns true if the given patch is active on this core.
Trait Implementations§
impl Copy for TexCore
impl Eq for TexCore
impl StructuralPartialEq for TexCore
Auto Trait Implementations§
impl Freeze for TexCore
impl RefUnwindSafe for TexCore
impl Send for TexCore
impl Sync for TexCore
impl Unpin for TexCore
impl UnsafeUnpin for TexCore
impl UnwindSafe for TexCore
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