[][src]Function syntax::attr::builtin::find_repr_attrs

pub fn find_repr_attrs(sess: &ParseSess, attr: &Attribute) -> Vec<ReprAttr>
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Parse #[repr(...)] forms.

Valid repr contents: any of the primitive integral type names (see int_type_of_word, below) to specify enum discriminant type; C, to use the same discriminant size that the corresponding C enum would or C structure layout, packed to remove padding, and transparent to elegate representation concerns to the only non-ZST field.