Struct otter_api_tests::GPiece[][src]

pub struct GPiece {
Show fields pub pos: PosC<i32>, pub face: FaceId, pub held: Option<PlayerId>, pub zlevel: ZLevel, pub pinned: bool, pub occult: PieceOccult, pub angle: PieceAngle, pub gen: Generation, pub lastclient: ClientId, pub gen_before_lastclient: Generation, pub xdata: Option<Box<dyn PieceXData + 'static, Global>>, pub moveable: PieceMoveable, pub rotateable: bool,
}

Fields

pos: PosC<i32>face: FaceIdheld: Option<PlayerId>zlevel: ZLevelpinned: booloccult: PieceOccultangle: PieceAnglegen: Generationlastclient: ClientIdgen_before_lastclient: Generationxdata: Option<Box<dyn PieceXData + 'static, Global>>moveable: PieceMoveablerotateable: bool

Implementations

impl GPiece[src]

pub fn xdata<T>(&self) -> Result<Option<&T>, InternalError> where
    T: PieceXData
[src]

pub fn xdata_exp<T>(&self) -> Result<&T, InternalError> where
    T: PieceXData
[src]

pub fn xdata_mut<T, D>(&mut self, def: D) -> Result<&mut T, InternalError> where
    T: PieceXData,
    D: FnOnce() -> T, 
[src]

pub fn xdata_mut_exp<T>(&mut self) -> Result<&mut T, InternalError> where
    T: PieceXData
[src]

pub fn moveable(&self) -> PieceMoveable[src]

pub fn rotateable(&self) -> bool[src]

pub fn dummy() -> GPiece[src]

impl GPiece[src]

Trait Implementations

impl Debug for GPiece[src]

impl<'de> Deserialize<'de> for GPiece[src]

impl Serialize for GPiece[src]

Auto Trait Implementations

impl !RefUnwindSafe for GPiece

impl Send for GPiece

impl !Sync for GPiece

impl Unpin for GPiece

impl !UnwindSafe for GPiece

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any

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> Serialize for T where
    T: Serialize + ?Sized
[src]

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>,