Struct otter_api_tests::shapelib::PieceRenderInstructions[][src]

pub struct PieceRenderInstructions {
    pub vpid: VisiblePieceId,
    pub occulted: PriOccultedGeneral<PosC<i32>, ZLevel>,
}

Fields

vpid: VisiblePieceIdocculted: PriOccultedGeneral<PosC<i32>, ZLevel>

Implementations

impl PieceRenderInstructions[src]

impl PieceRenderInstructions[src]

pub fn map_piece_update_op(
    &self,
    ioccults: &IOccults,
    gs: &GameState,
    gpc: &GPiece,
    ipc: &IPiece,
    op: PieceUpdateOp<(), ()>
) -> Result<Option<PieceUpdateOp<PreparedPieceState, ZLevel>>, InternalError>
[src]

pub fn prep_piecestate(
    &self,
    ioccults: &IOccults,
    gs: &GameState,
    gpc: &GPiece,
    ipc: &IPiece
) -> Result<PreparedPieceState, InternalError>
[src]

pub fn prep_pieceimage(
    &self,
    ioccults: &IOccults,
    gs: &GameState,
    gpc: &GPiece,
    ipc: &IPiece
) -> Result<PreparedPieceImage, InternalError>
[src]

pub fn angle(&self, gpc: &GPiece) -> PieceAngle[src]

pub fn facehint(&self, gpc: &GPiece) -> Option<FaceId>[src]

pub fn pos_zlevel(&'r self, gpc: &'r GPiece) -> (PosC<i32>, &'r ZLevel)[src]

pub fn make_defs(
    &self,
    ioccults: &IOccults,
    gs: &GameState,
    gpc: &GPiece,
    ipc: &IPiece
) -> Result<(Html, RectC<i32>), InternalError>
[src]

pub fn ui_operations(
    &self,
    gs: &GameState,
    gpc: &GPiece,
    ipc: &IPiece
) -> Result<Vec<UoDescription, Global>, InternalError>
[src]

Methods from Deref<Target = PriOccultedGeneral<PosC<i32>, ZLevel>>

pub fn instead(
    &self,
    ioccults: &'p IOccults,
    p: &'p IPiece
) -> Result<Either<ShowUnocculted, &'p (dyn OccultedPieceTrait + 'static)>, InternalError>
[src]

pub fn fully_visible(&self) -> Option<ShowUnocculted>[src]

pub fn describe(
    &self,
    ioccults: &IOccults,
    goccults: &GameOccults,
    gpc: &GPiece,
    ipc: &IPiece
) -> Html
[src]

pub fn describe_fallible(
    &self,
    ioccults: &IOccults,
    goccults: &GameOccults,
    gpc: &GPiece,
    ipc: &IPiece
) -> Result<Html, InternalError>
[src]

Trait Implementations

impl Clone for PieceRenderInstructions[src]

impl Debug for PieceRenderInstructions[src]

impl Deref for PieceRenderInstructions[src]

type Target = PriOccultedGeneral<PosC<i32>, ZLevel>

The resulting type after dereferencing.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<A> DynCastExt for A

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,