pub struct FieldDecl {
pub name: String,
pub pic: String,
pub offset: usize,
pub length: usize,
pub kind: FieldKind,
}Expand description
A single field declaration from a copybook: a name, its PIC string, its byte offset within the record,
its byte length, and its FieldKind.
Fields§
§name: StringThe COBOL data name (e.g. CUST-NAME).
pic: StringThe PIC clause text, kept verbatim for the audit packet (e.g. X(20), S9(5)V99).
offset: usizeByte offset of the field within the record.
length: usizeByte length of the field.
kind: FieldKindThe storage kind.
Implementations§
Source§impl FieldDecl
impl FieldDecl
Sourcepub fn alnum(
name: impl Into<String>,
pic: impl Into<String>,
offset: usize,
length: usize,
) -> Self
pub fn alnum( name: impl Into<String>, pic: impl Into<String>, offset: usize, length: usize, ) -> Self
An alphanumeric field.
Trait Implementations§
impl Eq for FieldDecl
impl StructuralPartialEq for FieldDecl
Auto Trait Implementations§
impl Freeze for FieldDecl
impl RefUnwindSafe for FieldDecl
impl Send for FieldDecl
impl Sync for FieldDecl
impl Unpin for FieldDecl
impl UnsafeUnpin for FieldDecl
impl UnwindSafe for FieldDecl
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