pub trait HasLatestVersion {
    type Latest;

    // Required methods
    fn into_latest(self) -> Self::Latest;
    fn as_latest_ref(&self) -> Option<&Self::Latest>;
}
Expand description

A marker trait to indicate that the type is versioned. This can be used for type bounds for requiring that types are versioned.

Required Associated Types§

Required Methods§

source

fn into_latest(self) -> Self::Latest

source

fn as_latest_ref(&self) -> Option<&Self::Latest>

Implementors§