Trait coins_bip32::ecdsa::signature::digest::block_buffer::generic_array::sequence::GenericSequence
[−]pub unsafe trait GenericSequence<T>: IntoIterator {
type Length: ArrayLength<T>;
type Sequence: GenericSequence<T> + FromIterator<T>
where
<Self::Sequence as GenericSequence<T>>::Length == Self::Length;
fn generate<F>(f: F) -> Self::Sequence
where
F: FnMut(usize) -> T;
}
Expand description
Defines some sequence with an associated length and iteration capabilities.
This is useful for passing N-length generic arrays as generics.
Required Associated Types
type Length: ArrayLength<T>
type Length: ArrayLength<T>
GenericArray
associated length
type Sequence: GenericSequence<T> + FromIterator<T>
where
<Self::Sequence as GenericSequence<T>>::Length == Self::Length
type Sequence: GenericSequence<T> + FromIterator<T>
where
<Self::Sequence as GenericSequence<T>>::Length == Self::Length
Concrete sequence type used in conjuction with reference implementations of GenericSequence