pub trait ProgramFacts {
Show 13 methods
// Required methods
fn options(&self) -> Options;
fn page(&self) -> &'static CodePage;
fn figurative(&self, f: Figurative) -> u8;
fn collation(&self) -> &Collation;
fn ordinal(&self, byte: u8) -> u16;
fn character(&self, ordinal: i64) -> Option<u8>;
fn characters(&self) -> usize;
fn decimal_point(&self) -> char;
fn edit(&self, edit: u32) -> (&[Sym], &str);
fn scaling(&self, item: usize) -> u32;
fn item_name(&self, item: usize) -> String;
// Provided methods
fn lax_redefinition(&self, _item: usize) -> Option<LaxRedefinition> { ... }
fn numcheck_removed(&self, _item: usize, _pos: Pos) -> bool { ... }
}Expand description
What these semantics read of the running program beyond a Loc: its options, code page and
collating sequence, its edited PICTUREs, and its items by the index a Loc carries.
Required Methods§
fn options(&self) -> Options
fn page(&self) -> &'static CodePage
Sourcefn figurative(&self, f: Figurative) -> u8
fn figurative(&self, f: Figurative) -> u8
A figurative constant’s character: HIGH-VALUE and LOW-VALUE are the collating sequence’s.
fn collation(&self) -> &Collation
Sourcefn ordinal(&self, byte: u8) -> u16
fn ordinal(&self, byte: u8) -> u16
A character’s ordinal position in the collating sequence, from 1, which FUNCTION ORD gives.
Sourcefn character(&self, ordinal: i64) -> Option<u8>
fn character(&self, ordinal: i64) -> Option<u8>
The character at an ordinal position, which FUNCTION CHAR gives.
Sourcefn characters(&self) -> usize
fn characters(&self) -> usize
How many characters the collating sequence orders.
fn decimal_point(&self) -> char
Provided Methods§
Sourcefn lax_redefinition(&self, _item: usize) -> Option<LaxRedefinition>
fn lax_redefinition(&self, _item: usize) -> Option<LaxRedefinition>
What NUMCHECK(ZON(LAX)) tolerates in a zoned item because of the item it redefines.
Sourcefn numcheck_removed(&self, _item: usize, _pos: Pos) -> bool
fn numcheck_removed(&self, _item: usize, _pos: Pos) -> bool
Whether the compiler removed NUMCHECK’s test of item where the reference at pos reads
it, having found the test always fails.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".