Trait ssz::TryFromIter
source · pub trait TryFromIter<T>: Sized {
type Error: Debug;
// Required method
fn try_from_iter<I>(iter: I) -> Result<Self, Self::Error>
where I: IntoIterator<Item = T>;
}
Expand description
Partial variant of std::iter::FromIterator
.
This trait is implemented for types which can be constructed from an iterator of decoded SSZ values, but which may refuse values once a length limit is reached.
Required Associated Types§
Required Methods§
fn try_from_iter<I>(iter: I) -> Result<Self, Self::Error>where
I: IntoIterator<Item = T>,
Object Safety§
This trait is not object safe.