pub struct DeterministicCborMapEntry { /* private fields */ }Expand description
Entry in a deterministic-CBOR map.
Maps use entry lists rather than host hash maps so duplicate keys can be rejected by the profile validator and ordering never depends on runtime iteration behavior. Construction intentionally preserves duplicates and input order; it does not establish that an entry belongs to a validated deterministic-CBOR tree.
Implementations§
Source§impl DeterministicCborMapEntry
impl DeterministicCborMapEntry
Sourcepub fn new(key: DeterministicCborMapKey, value: DeterministicCborValue) -> Self
pub fn new(key: DeterministicCborMapKey, value: DeterministicCborValue) -> Self
Construct a deterministic-CBOR map entry.
Sourcepub const fn key(&self) -> &DeterministicCborMapKey
pub const fn key(&self) -> &DeterministicCborMapKey
Borrow the map key.
Sourcepub const fn value(&self) -> &DeterministicCborValue
pub const fn value(&self) -> &DeterministicCborValue
Borrow the map value.
Trait Implementations§
Source§impl Debug for DeterministicCborMapEntry
impl Debug for DeterministicCborMapEntry
Source§impl Drop for DeterministicCborMapEntry
impl Drop for DeterministicCborMapEntry
impl ZeroizeOnDrop for DeterministicCborMapEntry
Auto Trait Implementations§
impl Freeze for DeterministicCborMapEntry
impl RefUnwindSafe for DeterministicCborMapEntry
impl Send for DeterministicCborMapEntry
impl Sync for DeterministicCborMapEntry
impl Unpin for DeterministicCborMapEntry
impl UnsafeUnpin for DeterministicCborMapEntry
impl UnwindSafe for DeterministicCborMapEntry
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