1 2 3 4 5 6 7 8 9 10 11
pub trait HasBuilder { type Builder; fn builder() -> Self::Builder; } pub trait IntoBuilder { type Builder; fn into_builder(self) -> Self::Builder; }