mz_catalog::durable::traits

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§