Skip to main content

File

Struct File 

Source
pub struct File<'a, P, X> {
Show 13 fields pub index: usize, pub name: &'a str, pub assign: &'a str, 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),
}
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 str

The DD name ASSIGN gives.

§organization: Organization§access: Access§optional: bool§format: Format

How 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).

Trait Implementations§

Source§

impl<'a, P: Clone, X: Clone> Clone for File<'a, P, X>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

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>
where Option<P>: Freeze, Option<Linage<X>>: Freeze,

§

impl<'a, P, X> RefUnwindSafe for File<'a, P, X>

§

impl<'a, P, X> Send for File<'a, P, X>
where Option<P>: Send, Option<Linage<X>>: Send,

§

impl<'a, P, X> Sync for File<'a, P, X>
where Option<P>: Sync, Option<Linage<X>>: Sync,

§

impl<'a, P, X> Unpin for File<'a, P, X>
where Option<P>: Unpin, Option<Linage<X>>: Unpin,

§

impl<'a, P, X> UnsafeUnpin for File<'a, P, X>

§

impl<'a, P, X> UnwindSafe for File<'a, P, X>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.