pub trait InertPieceTrait: PieceBaseTrait + Serialize + Deserialize {
    fn svg(
        &self,
        f: &mut Html,
        id: VisiblePieceId,
        face: FaceId,
        xdata: &Option<Box<dyn PieceXData + 'static, Global>>
    ) -> Result<(), InternalError>; fn describe_html(&self, face: FaceId) -> Result<Html, InternalError>; }

Required Methods

When used for occultated version of another object, face used is always default, regardless of nfaces. This is always the case for a piece whose PieceSpec::load returns Some for occultation, but which does not provide a nontrivial PieceSpec::load_inert.

Trait Implementations

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