Trait fj_kernel::partial::HasPartialForm
source · [−]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
sourcetype PartialForm
type PartialForm
The full version of this partial object
Required Methods
sourcefn from_partial(partial: Self::PartialForm, stores: &Stores) -> Self
fn from_partial(partial: Self::PartialForm, stores: &Stores) -> Self
Build a full object from the partial object