Struct State

Source
pub struct State<Left, Value, Right, Default>(/* private fields */)
where
    Left: List,
    Value: Bit,
    Right: List,
    Default: Bit;
Expand description

Zipper-list, representing current state of program. Consists of left-hand List, Value – Bit and right-hand List.

Trait Implementations§

Source§

impl<Left, Value, Right, Default> Debug for State<Left, Value, Right, Default>
where Left: List + Debug, Value: Bit + Debug, Right: List + Debug, Default: Bit + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<LeftG, ValueG, RightG, DefaultG> StateTrait for State<LeftG, ValueG, RightG, DefaultG>
where LeftG: List, ValueG: Bit, RightG: List, DefaultG: Bit,

Source§

type Left = LeftG

Left type (List).
Source§

type Value = ValueG

Value type (Bit).
Source§

type Right = RightG

Right type (List).
Source§

type Default = DefaultG

‘Default’ cell value (Bit)
Source§

fn val() -> RuntimeState

Real, represented with rust’s objects value of type.
Source§

fn new() -> Self

Real value of type.

Auto Trait Implementations§

§

impl<Left, Value, Right, Default> Freeze for State<Left, Value, Right, Default>
where Left: Freeze, Value: Freeze, Right: Freeze,

§

impl<Left, Value, Right, Default> RefUnwindSafe for State<Left, Value, Right, Default>
where Left: RefUnwindSafe, Value: RefUnwindSafe, Right: RefUnwindSafe, Default: RefUnwindSafe,

§

impl<Left, Value, Right, Default> Send for State<Left, Value, Right, Default>
where Left: Send, Value: Send, Right: Send, Default: Send,

§

impl<Left, Value, Right, Default> Sync for State<Left, Value, Right, Default>
where Left: Sync, Value: Sync, Right: Sync, Default: Sync,

§

impl<Left, Value, Right, Default> Unpin for State<Left, Value, Right, Default>
where Left: Unpin, Value: Unpin, Right: Unpin, Default: Unpin,

§

impl<Left, Value, Right, Default> UnwindSafe for State<Left, Value, Right, Default>
where Left: UnwindSafe, Value: UnwindSafe, Right: UnwindSafe, Default: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.