Skip to main content

atomic_class

Function atomic_class 

Source
pub fn atomic_class(
    types: &Types,
    ty: Ty,
    target: &TargetModel,
) -> Option<AtomicClass>
Expand description

Which Rust atomic a C object type is reached through, if any is.

The width comes from the target model, which the data-model check makes safe to rely on. None means there is no atomic of that width or shape: a 128-bit integer, an aggregate.