[][src]Struct doublecount::Program

pub struct Program<A = ActionTypeValue> {
    pub actions: Vec<Rc<A>>,
}

A collection of Actions to be executed in order to mutate some ProgramState.

Fields

actions: Vec<Rc<A>>

Implementations

impl<A> Program<A> where
    A: ActionTypeValueEnum
[src]

pub fn new(actions: Vec<Rc<A>>) -> Program<A>[src]

Create a new Program.

The provided actions will be sorted using ActionOrder.

pub fn len(&self) -> usize[src]

The number of actions in this program.

Trait Implementations

impl<A: Clone> Clone for Program<A>[src]

impl<A: Debug> Debug for Program<A>[src]

impl<'de, A> Deserialize<'de> for Program<A> where
    A: Deserialize<'de> + ActionTypeValueEnum
[src]

impl<A: PartialEq> PartialEq<Program<A>> for Program<A>[src]

impl<A> Serialize for Program<A> where
    A: Serialize
[src]

impl<A> StructuralPartialEq for Program<A>[src]

Auto Trait Implementations

impl<A = ActionTypeValue> !RefUnwindSafe for Program<A>

impl<A = ActionTypeValue> !Send for Program<A>

impl<A = ActionTypeValue> !Sync for Program<A>

impl<A> Unpin for Program<A>

impl<A> UnwindSafe for Program<A> where
    A: RefUnwindSafe

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