mirror of
https://github.com/arnaucube/miden-crypto.git
synced 2026-01-09 15:41:30 +01:00
Consuming iterator for RpoDigest
This commit is contained in:
committed by
Bobbin Threadbare
parent
800994c69b
commit
2499a8a2dd
@@ -302,6 +302,17 @@ impl Deserializable for RpoDigest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ITERATORS
|
||||||
|
// ================================================================================================
|
||||||
|
impl IntoIterator for RpoDigest {
|
||||||
|
type Item = Felt;
|
||||||
|
type IntoIter = <[Felt; 4] as IntoIterator>::IntoIter;
|
||||||
|
|
||||||
|
fn into_iter(self) -> Self::IntoIter {
|
||||||
|
self.0.into_iter()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// TESTS
|
// TESTS
|
||||||
// ================================================================================================
|
// ================================================================================================
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user