pub enum Native {
No,
Comp5,
BinaryChar,
CompX,
Comp5Bytes,
}Expand description
Whether a binary item’s value is limited by its bytes rather than its PICTURE, and how many bytes it has.
Variants§
No
USAGE BINARY, COMP or COMP-4: two, four or eight bytes as the PICTURE’s digits need, the value truncated as TRUNC says.
Comp5
COMP-5: the same sizes, never truncated to the PICTURE.
BinaryChar
GnuCOBOL’s and Micro Focus’s BINARY-CHAR under --compliance extended: one byte, never
truncated to its three digits.
CompX
Micro Focus’s COMP-X under --compliance extended: the fewest bytes that hold the PICTURE’s
digits, never truncated to them, and shown in them.
Comp5Bytes
PIC X(n) COMP-5 under --compliance extended: n bytes, unsigned, never truncated, and shown
in the digits that hold its whole value.
Implementations§
Trait Implementations§
impl Copy for Native
impl Eq for Native
impl StructuralPartialEq for Native
Auto Trait Implementations§
impl Freeze for Native
impl RefUnwindSafe for Native
impl Send for Native
impl Sync for Native
impl Unpin for Native
impl UnsafeUnpin for Native
impl UnwindSafe for Native
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