pub struct HarnessResultRef(/* private fields */);Implementations§
Source§impl HarnessResultRef
impl HarnessResultRef
Sourcepub fn for_run(run_id: &HarnessRunId) -> HarnessResultRef
pub fn for_run(run_id: &HarnessRunId) -> HarnessResultRef
Derives the result reference for run_id by reprefixing its hex
body. HarnessRunId and HarnessResultRef share the identical
24-hex-body scheme (opaque_id!), so this is a mechanical,
reversible relabeling, never a lookup — see run_id() for the
inverse. The expect below is sound by construction: every
HarnessRunId in existence was produced by HarnessRunId::new
(directly or via Deserialize), which validates the hrun_ prefix
before the value can exist at all.
Sourcepub fn run_id(&self) -> Result<HarnessRunId, HarnessValidationError>
pub fn run_id(&self) -> Result<HarnessRunId, HarnessValidationError>
Inverts for_run: recovers the HarnessRunId a result reference
was derived from. Fails only if self was not produced by
for_run from a valid run id (wrong prefix or malformed hex body).
Trait Implementations§
Source§impl Clone for HarnessResultRef
impl Clone for HarnessResultRef
Source§fn clone(&self) -> HarnessResultRef
fn clone(&self) -> HarnessResultRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HarnessResultRef
impl Debug for HarnessResultRef
Source§impl<'de> Deserialize<'de> for HarnessResultRef
impl<'de> Deserialize<'de> for HarnessResultRef
Source§fn deserialize<D>(
deserializer: D,
) -> Result<HarnessResultRef, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<HarnessResultRef, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for HarnessResultRef
impl Display for HarnessResultRef
impl Eq for HarnessResultRef
Source§impl Hash for HarnessResultRef
impl Hash for HarnessResultRef
Source§impl Ord for HarnessResultRef
impl Ord for HarnessResultRef
Source§fn cmp(&self, other: &HarnessResultRef) -> Ordering
fn cmp(&self, other: &HarnessResultRef) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for HarnessResultRef
impl PartialEq for HarnessResultRef
Source§impl PartialOrd for HarnessResultRef
impl PartialOrd for HarnessResultRef
Source§impl Serialize for HarnessResultRef
impl Serialize for HarnessResultRef
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for HarnessResultRef
Auto Trait Implementations§
impl Freeze for HarnessResultRef
impl RefUnwindSafe for HarnessResultRef
impl Send for HarnessResultRef
impl Sync for HarnessResultRef
impl Unpin for HarnessResultRef
impl UnsafeUnpin for HarnessResultRef
impl UnwindSafe for HarnessResultRef
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