repr_attribute in rustdoc::html::render - Rust
Description: Compute the public `#[repr]` of the item given by `DefId`.

Skip to main content

## repr_attribute

# Function repr_attribute

Source

    fn repr_attribute<'tcx>(
        tcx: TyCtxt<'tcx>,
        cache: &Cache,
        def_id: DefId,
    ) -> Option<Cow<'static, str>>

Expand description

Compute the public `#[repr]` of the item given by `DefId`.

Read more about it here: https://doc.rust-lang.org/nightly/rustdoc/advanced-features.html#repr-documenting-the-representation-of-a-type.