Struct rustc_mir_dataflow::ty::List [−][src]
#[repr(C)]pub struct List<T> {
len: usize,
data: [T; 0],
opaque: OpaqueListContents,
}Expand description
A wrapper for slices with the additional invariant that the slice is interned and no other slice with the same contents can exist in the same context. This means we can use pointer for both equality comparisons and hashing.
Unlike slices, the types contained in List are expected to be Copy
and iterating over a List returns T instead of a reference.
Note: Slice was already taken by the Ty.
Fields
len: usizedata: [T; 0]opaque: OpaqueListContentsAuto Trait Implementations
impl<T> !RefUnwindSafe for List<T>
impl<T> !UnwindSafe for List<T>
Blanket Implementations
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.