[−][src]Trait rustc_metadata::rmeta::LazyMeta

pub(in rmeta) trait LazyMeta {
    type Meta: Copy + 'static;
    pub(in rmeta) fn min_size(
        meta: Self::Meta
    ) -> usize; }

Additional metadata for a Lazy<T> where T may not be Sized, e.g. for Lazy<[T]>, this is the length (count of T values).

Associated Types

type Meta: Copy + 'static[src]

Loading content...

Required methods

pub(in rmeta) fn min_size(
    meta: Self::Meta
) -> usize
[src]

Returns the minimum encoded size.

Loading content...

Implementations on Foreign Types

impl<T> LazyMeta for [T][src]

type Meta = usize

Loading content...

Implementors

impl<I: Idx, T> LazyMeta for Table<I, T> where
    Option<T>: FixedSizeEncoding, 
[src]

type Meta = usize

impl<T> LazyMeta for T[src]

type Meta = ()

Loading content...