Struct rustc::ty::layout::Union [] [src]

pub struct Union {
    pub align: Align,
    pub min_size: Size,
    pub packed: bool,
}
🔬 This is a nightly-only experimental API. (rustc_private)

An untagged union.

Fields

🔬 This is a nightly-only experimental API. (rustc_private)
🔬 This is a nightly-only experimental API. (rustc_private)
🔬 This is a nightly-only experimental API. (rustc_private)

If true, no alignment padding is used.

Methods

impl<'a, 'gcx, 'tcx> Union
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

🔬 This is a nightly-only experimental API. (rustc_private)

Extend the Struct with more fields.

🔬 This is a nightly-only experimental API. (rustc_private)

Get the size with trailing alignment padding.

Trait Implementations

impl PartialEq for Union
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Union
[src]

impl Hash for Union
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Debug for Union
[src]

Formats the value using the given formatter.