Skip to main content

PartsContract

Trait PartsContract 

Source
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§

Source

const PROVIDED_PARTS: &'static [&'static str]

Part names this type actually supplies. 该类型实际提供的 part 名称。

Required Associated Types§

Source

type Output

Concrete type these parts construct. 这些 parts 构造出的具体类型。

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl PartsContract for NoParts

Source§

const PROVIDED_PARTS: &'static [&'static str]

Source§

type Output = ()