List

Trait List 

Source
pub trait List: Sealed {
    // Required methods
    fn unit() -> Self;
    fn is_empty() -> bool;
}
Expand description

Type-level HList, specialized to IOWord using a sealed trait See e.g. <https://hackage.haskell.org/package/heterolist> (or frunk) for what a HList is.

Required Methods§

Source

fn unit() -> Self

This is an inhabitant of the List type corresponding to the Self type

Source

fn is_empty() -> bool

THis returns whether the list is empty

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl List for Nil

Source§

impl<Item: IOWord, Next: List> List for Cons<Item, Next>