const_type_layout::inhabited

Macro all

Source
macro_rules! all {
    () => { ... };
    ($L:ty $(, $R:ty)*) => { ... };
    ({ $L:expr } $(, { $R:expr })*) => { ... };
}
Expand description

Helper macro to compute whether

are inhabited.

all![] resolves to crate::MaybeUninhabited::Inhabited.

For instance, a struct is inhabited iff all of its fields are inhabited. The empty list of types is inhabited. This macro resolves into either crate::MaybeUninhabited::Inhabited or crate::MaybeUninhabited::Uninhabited.