pub struct RuntimeCheckFailure {
pub check: &'static str,
pub message: String,
pub provenance: Provenance,
}Expand description
Evidence returned when a runtime check rejects a value. 运行期检查拒绝某个取值时返回的证据。
Fields§
§check: &'static strStable check name that produced the failure. 产出该失败的检查稳定名称。
message: StringHuman-readable reason the value was rejected. 该取值被拒绝的人类可读原因。
provenance: ProvenanceEvidence explaining where the rejected value came from. 说明被拒取值由来的证据。
Trait Implementations§
Source§impl Clone for RuntimeCheckFailure
impl Clone for RuntimeCheckFailure
Source§fn clone(&self) -> RuntimeCheckFailure
fn clone(&self) -> RuntimeCheckFailure
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 moreAuto Trait Implementations§
impl Freeze for RuntimeCheckFailure
impl RefUnwindSafe for RuntimeCheckFailure
impl Send for RuntimeCheckFailure
impl Sync for RuntimeCheckFailure
impl Unpin for RuntimeCheckFailure
impl UnsafeUnpin for RuntimeCheckFailure
impl UnwindSafe for RuntimeCheckFailure
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