Skip to main content

ChainItemsSource

Trait ChainItemsSource 

Source
pub trait ChainItemsSource {
    // Required method
    fn to_chain_items(self) -> ChainItems;
}
Expand description

A helper trait to allow Records, SignedActionHasheds, and ActionHasheds to be converted into ChainItems without needing to know which source type is being operated on.

Required Methods§

Source

fn to_chain_items(self) -> ChainItems

Convert a source type into a ChainItems value.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ChainItemsSource for Vec<(u32, HoloHash<Action>)>

Source§

impl ChainItemsSource for Vec<HoloHashed<Action>>

Source§

impl ChainItemsSource for Vec<Record>

Implementors§