Trait mz_catalog::durable::traits::UpgradeFrom

source ·
pub(crate) trait UpgradeFrom<T>: Sized {
    // Required method
    fn upgrade_from(value: T) -> Self;
}
Expand description

A copy of std::convert::From so we can work around Rust’s orphan rules.

The protobuf objects we durably persist for the catalog live in the mz_catalog_protos crate, because prosts heavy usage of proc-macros results in very long compile times. By moving them into a separate crate we need to recompile them a lot less frequently.

Required Methods§

source

fn upgrade_from(value: T) -> Self

Object Safety§

This trait is not object safe.

Implementors§