Struct rustc_query_impl::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: OpaqueListContents

Trait Implementations

Given an instance of this key, what crate is it referring to? This is used to find the provider. Read more

In the event that a cycle occurs, if no explicit span has been given for a query with key self, what span should we use? Read more

If the key is a DefId or DefId–equivalent, return that DefId. Otherwise, return None. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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.