Enum sigi::actions::Action[][src]

pub enum Action {
    Peek,
    Create(Item),
    Complete,
    Delete,
    DeleteAll,
    List,
    Length,
    IsEmpty,
    Next,
    Swap,
    Rot,
}

A stack-manipulation action.

Variants

Peek

Look at the most-recent item.

Create(Item)

Add a new item.

Complete

Complete (successfully) the most-recent item.

Note: This currently does nothing different from Delete. In future versions, sigi is planned to have a history of your completed items.

Delete

Delete the most-recent item.

DeleteAll

Delete all items.

List

List the stack’s items.

Length

Count the stack’s items.

IsEmpty

Determine if the stack is empty or not.

Next

Make the next item the most-recent item. The previously most-recent item is sent to the end of the stack.

Swap

Swap the two most-recent items.

Rot

Rotate the three most-recent items.

Implementations

impl Action[src]

pub fn data<'a>(&self) -> ActionMetadata<'a>[src]

Auto Trait Implementations

impl RefUnwindSafe for Action

impl Send for Action

impl Sync for Action

impl Unpin for Action

impl UnwindSafe for Action

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.