Enum tfm::ligkern::lang::ValidationWarning
source · pub enum ValidationWarning {
SkipTooLarge(usize),
LigatureStepForNonExistentCharacter {
instruction_index: usize,
right_char: Char,
new_right_char: Char,
},
KernStepForNonExistentCharacter {
instruction_index: usize,
right_char: Char,
new_right_char: Char,
},
LigatureStepProducesNonExistentCharacter {
instruction_index: usize,
replacement_char: Char,
new_replacement_char: Char,
},
KernIndexTooBig(usize),
InvalidLigTag(usize),
EntrypointRedirectTooBig(usize),
InvalidEntrypoint(Char),
InvalidBoundaryCharEntrypoint,
InfiniteLoop(InfiniteLoopError),
}
Variants§
SkipTooLarge(usize)
LigatureStepForNonExistentCharacter
KernStepForNonExistentCharacter
LigatureStepProducesNonExistentCharacter
KernIndexTooBig(usize)
InvalidLigTag(usize)
EntrypointRedirectTooBig(usize)
InvalidEntrypoint(Char)
InvalidBoundaryCharEntrypoint
InfiniteLoop(InfiniteLoopError)
Implementations§
source§impl ValidationWarning
impl ValidationWarning
sourcepub fn tftopl_message(&self) -> String
pub fn tftopl_message(&self) -> String
Returns the warning message the TFtoPL program prints for this kind of error.
sourcepub fn tftopl_section(&self) -> u8
pub fn tftopl_section(&self) -> u8
Returns the section in Knuth’s TFtoPL (version 2014) in which this warning occurs.
Trait Implementations§
source§impl Clone for ValidationWarning
impl Clone for ValidationWarning
source§fn clone(&self) -> ValidationWarning
fn clone(&self) -> ValidationWarning
Returns a copy of the value. Read more
1.0.0 · 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 ValidationWarning
impl Debug for ValidationWarning
source§impl PartialEq<ValidationWarning> for ValidationWarning
impl PartialEq<ValidationWarning> for ValidationWarning
source§fn eq(&self, other: &ValidationWarning) -> bool
fn eq(&self, other: &ValidationWarning) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ValidationWarning
impl StructuralEq for ValidationWarning
impl StructuralPartialEq for ValidationWarning
Auto Trait Implementations§
impl RefUnwindSafe for ValidationWarning
impl Send for ValidationWarning
impl Sync for ValidationWarning
impl Unpin for ValidationWarning
impl UnwindSafe for ValidationWarning
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