pub struct Absent;Expand description
The test-only absent value of confirmed-mismatch warnings.
Rust’s default codec stores no distinct absent value, unlike TypeScript’s
top-level undefined. A test value type whose Serialize delegates to
this marker at the top level stands for one: a warning treats it as an
absent side, not as a value that failed to render, so its value field is
unavailable without a loggingOutcome and the built-in difference
reports the other side whole at the root pointer. serde_json renders the
marker as null.
Trait Implementations§
impl Copy for Absent
impl Eq for Absent
impl StructuralPartialEq for Absent
Auto Trait Implementations§
impl Freeze for Absent
impl RefUnwindSafe for Absent
impl Send for Absent
impl Sync for Absent
impl Unpin for Absent
impl UnsafeUnpin for Absent
impl UnwindSafe for Absent
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
Compare self to
key and return true if they are equal.