pub struct Record { /* private fields */ }Expand description
A closed set of named fields (constrained by its child labels).
fields preserves declaration order (needed for canonical OSD
rendering and prune’s declaration-order environment reconstruction –
see ops/mod.rs’s module docs), but equality below deliberately treats
it as an unordered set: omnist-spec’s docs/03-schema-model.md Sec3.1
states fields are an unordered set at the model layer, so two records
declaring the same fields in a different order must compare equal.
Confirmed empirically by this crate’s own conformance self-test
(tools/conformance, fixture
_referee-self-test/01-schema-exact-equal-different-field-order) before
this manual PartialEq replaced the field-order-sensitive derive.
Implementations§
Trait Implementations§
impl Eq for Record
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more