pub trait PieceSpec: 'static + Debug + Sync + Send + Serialize + Deserialize {
    fn load(&self, pla: PieceLoadArgs<'_>) -> Result<SpecLoaded, SpecError>;

    fn count(&self, _pcaliases: &PieceAliases) -> Result<usize, SpecError> { ... }
    fn load_inert(
        &self,
        _ig: &Instance,
        SpecDepth
    ) -> Result<SpecLoadedInert, SpecError> { ... } }

Required Methods

Provided Methods

Used when a piece wants to use another for its occulted form

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

Deserialize this value from the given Serde deserializer. Read more

Deserialize this value from the given Serde deserializer. Read more

Deserialize this value from the given Serde deserializer. 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

Serialize this value into the given Serde serializer. Read more

Implementors