Skip to main content

DisplayItem

Enum DisplayItem 

Source
pub enum DisplayItem<P = u32, O = Operand> {
    Bytes(P),
    National(P),
    Digits {
        place: P,
        digits: u32,
        signed: bool,
    },
    Refused {
        place: P,
        abend: u32,
    },
    Text(u32),
    Value(O),
}

Variants§

§

Bytes(P)

Groups, alphanumeric, zoned and edited items, and national items written elsewhere than the console: the storage in the program’s code page.

§

National(P)

A national item UPON CONSOLE: converted to the program’s code page.

§

Digits

Packed and binary items: the value’s last digits digits, which for COMP-5 or TRUNC(BIN) are as many as the item’s halfword, fullword or doubleword holds.

Fields

§place: P
§digits: u32
§signed: bool
§

Refused

Floating-point, pointer, index and object-reference items: the place, then the abend.

Fields

§place: P
§abend: u32
§

Text(u32)

A literal or figurative constant as DISPLAY shows it; a numeric literal as written, its decimal point the program’s.

§

Value(O)

FUNCTION, LENGTH OF or ADDRESS OF, by the value’s kind, a national value unconverted; UPON CONSOLE a national function’s value is DISPLAY-OF’s.

Trait Implementations§

Source§

impl<P, O> Clone for DisplayItem<P, O>
where P: Clone, O: Clone,

Source§

fn clone(&self) -> DisplayItem<P, O>

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<P, O> Copy for DisplayItem<P, O>
where P: Copy, O: Copy,

Source§

impl<P, O> Debug for DisplayItem<P, O>
where P: Debug, O: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Decode for DisplayItem

Source§

impl Encode for DisplayItem

Source§

fn encode(&self, w: &mut Writer)

Source§

impl<P, O> Eq for DisplayItem<P, O>
where P: Eq, O: Eq,

Source§

impl<P, O> PartialEq for DisplayItem<P, O>
where P: PartialEq, O: PartialEq,

Source§

fn eq(&self, other: &DisplayItem<P, O>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<P, O> StructuralPartialEq for DisplayItem<P, O>
where P: PartialEq, O: PartialEq,

Auto Trait Implementations§

§

impl<P, O> Freeze for DisplayItem<P, O>
where P: Freeze, O: Freeze,

§

impl<P, O> RefUnwindSafe for DisplayItem<P, O>

§

impl<P, O> Send for DisplayItem<P, O>
where P: Send, O: Send,

§

impl<P, O> Sync for DisplayItem<P, O>
where P: Sync, O: Sync,

§

impl<P, O> Unpin for DisplayItem<P, O>
where P: Unpin, O: Unpin,

§

impl<P, O> UnsafeUnpin for DisplayItem<P, O>
where P: UnsafeUnpin, O: UnsafeUnpin,

§

impl<P, O> UnwindSafe for DisplayItem<P, O>
where P: UnwindSafe, O: UnwindSafe,

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.