pub trait PartsContract {
type Output;
const PROVIDED_PARTS: &'static [&'static str];
}Expand description
Parts declare the construction shape an object supplies. parts 声明 object 实际提供的构造形状。
Required Associated Constants§
Sourceconst PROVIDED_PARTS: &'static [&'static str]
const PROVIDED_PARTS: &'static [&'static str]
Part names this type actually supplies. 该类型实际提供的 part 名称。
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".