Enum tfm::NextLargerProgramWarning
source · pub enum NextLargerProgramWarning {
NonExistentCharacter {
original: Char,
next_larger: Char,
},
InfiniteLoop {
original: Char,
next_larger: Char,
},
}
Expand description
Warning from the compilation of “next larger character” instructions.
Variants§
Implementations§
source§impl NextLargerProgramWarning
impl NextLargerProgramWarning
pub fn bad_char(&self) -> Char
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.
sourcepub fn pltotf_section(&self) -> u8
pub fn pltotf_section(&self) -> u8
Returns the section in Knuth’s PLtoTF (version 2014) in which this warning occurs.
sourcepub fn pltotf_message(&self) -> String
pub fn pltotf_message(&self) -> String
Returns the warning message the PLtoTF program prints for this kind of error.
Trait Implementations§
source§impl Clone for NextLargerProgramWarning
impl Clone for NextLargerProgramWarning
source§fn clone(&self) -> NextLargerProgramWarning
fn clone(&self) -> NextLargerProgramWarning
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 NextLargerProgramWarning
impl Debug for NextLargerProgramWarning
source§impl PartialEq<NextLargerProgramWarning> for NextLargerProgramWarning
impl PartialEq<NextLargerProgramWarning> for NextLargerProgramWarning
source§fn eq(&self, other: &NextLargerProgramWarning) -> bool
fn eq(&self, other: &NextLargerProgramWarning) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NextLargerProgramWarning
impl StructuralEq for NextLargerProgramWarning
impl StructuralPartialEq for NextLargerProgramWarning
Auto Trait Implementations§
impl RefUnwindSafe for NextLargerProgramWarning
impl Send for NextLargerProgramWarning
impl Sync for NextLargerProgramWarning
impl Unpin for NextLargerProgramWarning
impl UnwindSafe for NextLargerProgramWarning
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