pub struct Set {
pub primary_id: u32,
pub prfs: HashMap<u32, Box<dyn Prf>>,
}
Expand description
Set
is a set of PRFs.
A Keyset
can be converted into a set of PRFs using this primitive. Every
key in the keyset corresponds to a PRF in the prf.Set. Every PRF in the set is given an ID,
which is the same ID as the key id in the Keyset
.
Fields§
§primary_id: u32
The key ID marked as primary in the corresponding Keyset
.
prfs: HashMap<u32, Box<dyn Prf>>
Map key IDs to their corresponding Prf.
Implementations§
Auto Trait Implementations§
impl Freeze for Set
impl !RefUnwindSafe for Set
impl !Send for Set
impl !Sync for Set
impl Unpin for Set
impl !UnwindSafe for Set
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more