Enum otter_api_tests::PieceUpdateOp[][src]

pub enum PieceUpdateOp<NS, ZL> {
    Delete(),
    Insert(NS),
    Modify(NS),
    ModifyQuiet(NS),
    Move(PosC<i32>),
    MoveQuiet(PosC<i32>),
    SetZLevel(ZL),
    SetZLevelQuiet(ZL),
}

Variants

Delete()
Insert(NS)
Modify(NS)
ModifyQuiet(NS)
Move(PosC<i32>)
MoveQuiet(PosC<i32>)
SetZLevel(ZL)
SetZLevelQuiet(ZL)

Implementations

impl<NS, ZC> PieceUpdateOp<NS, ZC>[src]

pub fn new_state(&self) -> Option<&NS>[src]

pub fn try_map<NS2, ZC2, E, F, G>(
    self,
    f: F,
    g: G
) -> Result<PieceUpdateOp<NS2, ZC2>, E> where
    E: Error,
    F: FnOnce(NS) -> Result<NS2, E>,
    G: FnOnce(ZC) -> Result<ZC2, E>, 
[src]

pub fn map_ref(&self) -> PieceUpdateOp<&NS, &ZC>[src]

pub fn map<NS2, ZC2, F, G>(self, f: F, g: G) -> PieceUpdateOp<NS2, ZC2> where
    F: FnOnce(NS) -> NS2,
    G: FnOnce(ZC) -> ZC2, 
[src]

pub fn new_z_generation(&self) -> Option<Generation> where
    ZC: Borrow<ZLevel>, 
[src]

Trait Implementations

impl<NS, ZL> Clone for PieceUpdateOp<NS, ZL> where
    NS: Clone,
    ZL: Clone
[src]

impl<NS, ZL> Copy for PieceUpdateOp<NS, ZL> where
    NS: Copy,
    ZL: Copy
[src]

impl<NS, ZL> Debug for PieceUpdateOp<NS, ZL> where
    NS: Debug,
    ZL: Debug
[src]

impl From<PieceUpdateOp<(), ()>> for PieceUpdateOps[src]

impl<NS, ZL> JsonLen for PieceUpdateOp<NS, ZL> where
    NS: JsonLen
[src]

impl<NS, ZL> Serialize for PieceUpdateOp<NS, ZL> where
    NS: Serialize,
    ZL: Serialize
[src]

Auto Trait Implementations

impl<NS, ZL> RefUnwindSafe for PieceUpdateOp<NS, ZL> where
    NS: RefUnwindSafe,
    ZL: RefUnwindSafe

impl<NS, ZL> Send for PieceUpdateOp<NS, ZL> where
    NS: Send,
    ZL: Send

impl<NS, ZL> Sync for PieceUpdateOp<NS, ZL> where
    NS: Sync,
    ZL: Sync

impl<NS, ZL> Unpin for PieceUpdateOp<NS, ZL> where
    NS: Unpin,
    ZL: Unpin

impl<NS, ZL> UnwindSafe for PieceUpdateOp<NS, ZL> where
    NS: UnwindSafe,
    ZL: UnwindSafe

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