Trait Origin

Source
pub trait Origin<R> {
    type Error;

    // Required method
    fn calculate_origin(&self) -> Result<R, Self::Error>;
}
Expand description

This trait must be implemented to construct new instances of an an AtomId. It tells the AtomId::construct constructor how to calculate the value for its root field.

Required Associated Types§

Source

type Error

The error type returned by the Origin::calculate_origin method.

Required Methods§

Source

fn calculate_origin(&self) -> Result<R, Self::Error>

The method used the calculate the root field for the AtomId.

§Errors

This function will return an error if the calculation fails or is impossible.

Implementations on Foreign Types§

Source§

impl Origin<Root> for IntoIter<(AtomTag, Version, ObjectId)>

Source§

impl<'a> Origin<Root> for Commit<'a>

Implementors§