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§
Sourcetype Error
type Error
The error type returned by the Origin::calculate_origin
method.