pub enum ZeroSignPolicy {
Positive,
Preferred,
}Expand description
Policy for the sign zone nibble when the numeric value is exactly zero.
COBOL compilers differ on whether zero is positive (0xC0) or unsigned
(0xF0). This enum lets callers choose the convention.
§Examples
use copybook_overpunch::ZeroSignPolicy;
let policy = ZeroSignPolicy::Preferred;
assert_eq!(policy, ZeroSignPolicy::Preferred);
assert_ne!(policy, ZeroSignPolicy::Positive);Variants§
Positive
Use positive sign for zero (C for EBCDIC, ‘{’ for ASCII)
Preferred
Use ‘F’ sign for zero in EBCDIC, positive in ASCII
Trait Implementations§
Source§impl Clone for ZeroSignPolicy
impl Clone for ZeroSignPolicy
Source§fn clone(&self) -> ZeroSignPolicy
fn clone(&self) -> ZeroSignPolicy
Returns a duplicate 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 ZeroSignPolicy
impl Debug for ZeroSignPolicy
Source§impl PartialEq for ZeroSignPolicy
impl PartialEq for ZeroSignPolicy
impl Copy for ZeroSignPolicy
impl Eq for ZeroSignPolicy
impl StructuralPartialEq for ZeroSignPolicy
Auto Trait Implementations§
impl Freeze for ZeroSignPolicy
impl RefUnwindSafe for ZeroSignPolicy
impl Send for ZeroSignPolicy
impl Sync for ZeroSignPolicy
impl Unpin for ZeroSignPolicy
impl UnsafeUnpin for ZeroSignPolicy
impl UnwindSafe for ZeroSignPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.