pub struct Item {Show 26 fields
pub name: Option<String>,
pub level: u8,
pub parent: Option<usize>,
pub children: Vec<usize>,
pub offset: u32,
pub size: u32,
pub occurs: u32,
pub occurs_min: u32,
pub table: bool,
pub depending_on: Option<Ref>,
pub odo: Vec<usize>,
pub moved_by: Vec<usize>,
pub followed: bool,
pub index_names: Vec<String>,
pub keys: Vec<(bool, Ref)>,
pub local: bool,
pub kind: Kind,
pub value: Option<Literal>,
pub dims: Vec<(u32, u32)>,
pub redefines: Option<String>,
pub file: Option<u16>,
pub linkage: Option<u16>,
pub object_class: Option<String>,
pub scaling: u32,
pub alphabetic: bool,
pub pos: Pos,
}Fields§
§name: Option<String>§level: u8§parent: Option<usize>§children: Vec<usize>§offset: u32§size: u32One occurrence.
occurs: u32§occurs_min: u32The fewest occurrences: OCCURS DEPENDING ON’s minimum, else occurs.
table: boolDeclared with OCCURS, so references to it take a subscript.
depending_on: Option<Ref>OCCURS … DEPENDING ON: the item holding the current number of occurrences.
odo: Vec<usize>The OCCURS DEPENDING ON tables within this group, other than one within another of them: the occurrences past each one’s current count leave its length out.
moved_by: Vec<usize>The OCCURS DEPENDING ON tables ahead of this item in its record: the occurrences past each one’s current count move it back (a variably located item, Language Reference SC27-8713-03, p. 206).
followed: boolWhether an item after this one in its record moves with an OCCURS DEPENDING ON table in it.
index_names: Vec<String>A table’s INDEXED BY names, and its ASCENDING/DESCENDING keys.
keys: Vec<(bool, Ref)>§local: boolA LOCAL-STORAGE item: its offset is from the activation’s local storage.
kind: Kind§value: Option<Literal>§dims: Vec<(u32, u32)>Stride and count of each OCCURS on the item and its ancestors, outermost first.
redefines: Option<String>§file: Option<u16>The file whose record area holds the item, for a FILE SECTION record.
linkage: Option<u16>The LINKAGE record the item belongs to, by its position among LINKAGE 01 and 77 items; its offset is from that record’s start, wherever the caller’s argument puts it.
object_class: Option<String>The class-name of a typed object reference.
scaling: u32PICTURE scaling positions P right of the digits: the item’s value is its digits times ten to this power.
alphabetic: boolOf category alphabetic: a PICTURE of the symbol A alone.
pos: Pos