PushBackEmpty

Trait PushBackEmpty 

Source
pub trait PushBackEmpty<NewLabel, NewDType> {
    type OutputFields: AssocStorage;

    // Required method
    fn push_back_empty(self) -> DataStore<Self::OutputFields>;
}
Expand description

Trait for pushing an empty field onto the back of a DataStore’s fields cons-list.

Required Associated Types§

Source

type OutputFields: AssocStorage

FieldCons cons-list after adding field.

Required Methods§

Source

fn push_back_empty(self) -> DataStore<Self::OutputFields>

Push an empty field into the back of this store’s fields cons-list.

Implementors§

Source§

impl<PrevFields, NewLabel, NewDType> PushBackEmpty<NewLabel, NewDType> for DataStore<PrevFields>
where PrevFields: AssocStorage + PushBack<FieldSchema<NewLabel, NewDType>>, PushedBackField<PrevFields, NewLabel, NewDType>: AssocStorage, PrevFields::Storage: PushBack<NewFieldStorage<NewLabel, NewDType>, Output = <PushedBackField<PrevFields, NewLabel, NewDType> as AssocStorage>::Storage>, NewLabel: Debug, NewDType: Debug,

Source§

type OutputFields = <PrevFields as PushBack<Labeled<NewLabel, PhantomData<NewDType>>>>::Output