Skip to main content

Upgrade

Trait Upgrade 

Source
pub trait Upgrade<T> {
    // Required method
    fn upgrade(self) -> Converted<T>;
}
Available on crate feature convert only.
Expand description

Converts an object to a newer OCPI version.

Where the newer version introduced a required field, the impl documents the default it picks and the spec text that justifies it.

Required Methods§

Source

fn upgrade(self) -> Converted<T>

Converts to the newer version.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§