pub trait HasPartialForm: Into<Self::PartialForm> {
    type PartialForm;

    fn from_partial(partial: Self::PartialForm, stores: &Stores) -> Self;
}
Expand description

Implemented for types that are partial objects

Implementation Note

It would be nicer to require a conversion from &Self into the partial form, but I think we need a where clause on the associated type to specify that, which is unstable. It should become stable soon though, together with generic associated types: https://github.com/rust-lang/rust/issues/44265

Required Associated Types

The full version of this partial object

Required Methods

Build a full object from the partial object

Implementors