pub struct Options {
pub arith: Arith,
pub trunc: Trunc,
pub numproc: Numproc,
pub codepage: u16,
pub trunc_check: TruncCheck,
}Fields§
§arith: Arith§trunc: Trunc§numproc: Numproc§codepage: u16§trunc_check: TruncCheckImplementations§
Source§impl Options
impl Options
Sourcepub fn apply(&mut self, option: &str) -> Result<bool, OptionError>
pub fn apply(&mut self, option: &str) -> Result<bool, OptionError>
Applies one IBM compiler option as a CBL or PROCESS card or PARM writes it, e.g.
TRUNC(OPT), AR(E), CP(1047). Returns false for an option this layer does not read.
Sourcepub fn apply_flag(&mut self, flag: &str) -> Result<(), OptionError>
pub fn apply_flag(&mut self, flag: &str) -> Result<(), OptionError>
Applies a flag of this compiler’s own command line.
pub fn code_page(&self) -> &'static CodePage
Trait Implementations§
impl Copy for Options
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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