Trait fj_kernel::partial::PartialObject
source · pub trait PartialObject: Clone + Debug {
type Full: HasPartial<Partial = Self>;
// Required methods
fn new(objects: &mut Service<Objects>) -> Self;
fn from_full(full: &Self::Full, cache: &mut FullToPartialCache) -> Self;
fn build(self, objects: &mut Service<Objects>) -> Self::Full;
}Expand description
Implemented for partial objects
Required Associated Types§
sourcetype Full: HasPartial<Partial = Self>
type Full: HasPartial<Partial = Self>
The type representing the full object
Required Methods§
sourcefn from_full(full: &Self::Full, cache: &mut FullToPartialCache) -> Self
fn from_full(full: &Self::Full, cache: &mut FullToPartialCache) -> Self
Construct a partial object from a full one