pub trait PieceSpec: 'static + Debug + Sync + Send + Serialize + Deserialize {
    fn load(
        &self,
        i: usize,
        gpc: &mut GPiece,
        ig: &Instance,
        depth: SpecDepth
    ) -> Result<PieceSpecLoaded, SpecError>; fn count(&self, _pcaliases: &PieceAliases) -> Result<usize, SpecError> { ... }
fn load_occult(
        &self,
        _ig: &Instance,
        SpecDepth
    ) -> Result<Box<dyn OccultedPieceTrait + 'static, Global>, SpecError> { ... } }

Required methods

Provided methods

Trait Implementations

Serialize this value into the given Serde serializer. Read more

Serialize this value into the given Serde serializer. Read more

Serialize this value into the given Serde serializer. Read more

Serialize this value into the given Serde serializer. Read more

Implementations on Foreign Types

Implementors