pub enum CobolValue {
Alphanumeric(Vec<u8>),
Numeric {
digits: Vec<u8>,
scale: usize,
negative: bool,
},
Group(Vec<CobolField>),
}Expand description
A decoded COBOL field value.
Variants§
Alphanumeric(Vec<u8>)
An alphanumeric (PIC X/A) value – raw bytes, trimmed of trailing spaces/NULs on render.
Numeric
A numeric (PIC 9) value: the digit characters, the implied decimal scale, and the sign.
Group(Vec<CobolField>)
A group: child fields, rendered as nested elements in order.
Trait Implementations§
Source§impl Clone for CobolValue
impl Clone for CobolValue
Source§fn clone(&self) -> CobolValue
fn clone(&self) -> CobolValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CobolValue
impl Debug for CobolValue
impl Eq for CobolValue
Source§impl PartialEq for CobolValue
impl PartialEq for CobolValue
Source§fn eq(&self, other: &CobolValue) -> bool
fn eq(&self, other: &CobolValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CobolValue
Auto Trait Implementations§
impl Freeze for CobolValue
impl RefUnwindSafe for CobolValue
impl Send for CobolValue
impl Sync for CobolValue
impl Unpin for CobolValue
impl UnsafeUnpin for CobolValue
impl UnwindSafe for CobolValue
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