// FIXME(altair): generate these impls in superstruct
impl<'a, T: EthSpec> From<&'a BeaconStateBase<T>> for BeaconStateRef<'a, T> {
fn from(inner: &BeaconStateBase<T>) -> Self {
BeaconStateRef::Base(inner)
}
}
impl<'a, T: EthSpec> From<&'a BeaconStateAltair<T>> for BeaconStateRef<'a, T> {
fn from(inner: &BeaconStateAltair<T>) -> Self {
BeaconStateRef::Altair(inner)
}
}