Enum tfm::format::DeserializationWarning
source · pub enum DeserializationWarning {
InternalFileLengthIsSmall(i16, usize),
}
Variants§
InternalFileLengthIsSmall(i16, usize)
The file length specified inside the TFM file is smaller than the actual file size.
Additional data after the file length is ignored.
The first element is the number of words specified in the TFM header. The second element is the number of bytes in the file.
Implementations§
source§impl DeserializationWarning
impl DeserializationWarning
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) -> usize
pub fn tftopl_section(&self) -> usize
Returns the section in Knuth’s TFtoPL (version 2014) in which this warning occurs.
sourcepub fn tfm_file_modified(&self) -> bool
pub fn tfm_file_modified(&self) -> bool
Returns true if this warning means the .tfm file was modified.
Trait Implementations§
source§impl Debug for DeserializationWarning
impl Debug for DeserializationWarning
source§impl PartialEq<DeserializationWarning> for DeserializationWarning
impl PartialEq<DeserializationWarning> for DeserializationWarning
source§fn eq(&self, other: &DeserializationWarning) -> bool
fn eq(&self, other: &DeserializationWarning) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DeserializationWarning
impl StructuralEq for DeserializationWarning
impl StructuralPartialEq for DeserializationWarning
Auto Trait Implementations§
impl RefUnwindSafe for DeserializationWarning
impl Send for DeserializationWarning
impl Sync for DeserializationWarning
impl Unpin for DeserializationWarning
impl UnwindSafe for DeserializationWarning
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