feat: add helper to create bootstrap addresses (#269)

This commit is contained in:
Santiago Carmuega 2023-07-29 23:15:00 +02:00 committed by GitHub
parent ea9c4e8b59
commit e117a2723a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 69 additions and 25 deletions

View file

@ -254,6 +254,12 @@ impl<P> Deref for OrderPreservingProperties<P> {
}
}
impl<P> From<Vec<P>> for OrderPreservingProperties<P> {
fn from(value: Vec<P>) -> Self {
OrderPreservingProperties(value)
}
}
impl<'b, C, P> minicbor::decode::Decode<'b, C> for OrderPreservingProperties<P>
where
P: Decode<'b, C>,