pub struct Environment {
pub alphabets: Vec<(String, Alphabet)>,
pub collating_sequence: Option<String>,
pub same_record_areas: Vec<Vec<String>>,
pub same_areas: Vec<Vec<String>>,
pub mnemonics: Vec<(String, String)>,
pub debugging_mode: bool,
pub decimal_point_comma: bool,
}Expand description
ENVIRONMENT DIVISION clauses beyond SELECT that the program’s meaning depends on.
Fields§
§alphabets: Vec<(String, Alphabet)>SPECIAL-NAMES ALPHABET: each alphabet-name and what it is.
collating_sequence: Option<String>OBJECT-COMPUTER PROGRAM COLLATING SEQUENCE.
same_record_areas: Vec<Vec<String>>I-O-CONTROL SAME RECORD AREA and SAME AREA clauses, each with the files it names.
same_areas: Vec<Vec<String>>§mnemonics: Vec<(String, String)>SPECIAL-NAMES entries naming a printer channel, space suppression, a punch pocket or AFP: each mnemonic-name and its environment-name.
debugging_mode: boolSOURCE-COMPUTER … WITH DEBUGGING MODE: debugging lines and USE FOR DEBUGGING sections are compiled rather than read as comments.
decimal_point_comma: boolSPECIAL-NAMES DECIMAL-POINT IS COMMA: the comma and the period exchange roles in PICTURE character-strings, numeric literals and the arguments of NUMVAL and NUMVAL-C.
Trait Implementations§
Source§impl Clone for Environment
impl Clone for Environment
Source§impl Debug for Environment
impl Debug for Environment
Source§impl Default for Environment
impl Default for Environment
impl Eq for Environment
Source§impl PartialEq for Environment
impl PartialEq for Environment
impl StructuralPartialEq for Environment
Auto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnsafeUnpin for Environment
impl UnwindSafe for Environment
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