pub struct File<'a, P, X> {Show 15 fields
pub index: usize,
pub name: &'a str,
pub assign: &'a str,
pub assign_item: Option<(P, Pos)>,
pub organization: Organization,
pub access: Access,
pub optional: bool,
pub format: Format,
pub status: Option<P>,
pub relative: Option<P>,
pub linage: Option<Linage<X>>,
pub carriage: Option<Carriage>,
pub area: (usize, usize),
pub read_lengths: (usize, usize),
pub depending: Option<Depending<P>>,
}Expand description
A file as SELECT and FD declare it (crate::lir::FileDesc), with the executor’s handles: P
a data item, X an integer it evaluates. Its keys are the executor’s to resolve
(Files::keying).
Fields§
§index: usize§name: &'a str§assign: &'a strThe DD name ASSIGN gives.
assign_item: Option<(P, Pos)>The data item ASSIGN names, whose value is the DD name at each OPEN, and where the SELECT
is (--compliance extended).
organization: Organization§access: Access§optional: bool§format: FormatHow records are held when the DD does not say.
status: Option<P>§relative: Option<P>§linage: Option<Linage<X>>§carriage: Option<Carriage>§area: (usize, usize)Where the record area is in run-unit memory, and its length.
read_lengths: (usize, usize)The shortest and longest variable-length record a READ takes without a record length
conflict (crate::lir::FileDesc::read_lengths).
depending: Option<Depending<P>>Trait Implementations§
impl<'a, P: Copy, X: Copy> Copy for File<'a, P, X>
Auto Trait Implementations§
impl<'a, P, X> Freeze for File<'a, P, X>
impl<'a, P, X> RefUnwindSafe for File<'a, P, X>where
Option<(P, Pos)>: RefUnwindSafe,
Option<P>: RefUnwindSafe,
Option<Linage<X>>: RefUnwindSafe,
Option<Depending<P>>: RefUnwindSafe,
impl<'a, P, X> Send for File<'a, P, X>
impl<'a, P, X> Sync for File<'a, P, X>
impl<'a, P, X> Unpin for File<'a, P, X>
impl<'a, P, X> UnsafeUnpin for File<'a, P, X>where
Option<(P, Pos)>: UnsafeUnpin,
Option<P>: UnsafeUnpin,
Option<Linage<X>>: UnsafeUnpin,
Option<Depending<P>>: UnsafeUnpin,
impl<'a, P, X> UnwindSafe for File<'a, P, X>where
Option<(P, Pos)>: UnwindSafe,
Option<P>: UnwindSafe,
Option<Linage<X>>: UnwindSafe,
Option<Depending<P>>: UnwindSafe,
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