Features/Rust/Error: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

14 June 2024

  • curprev 19:3019:30, 14 June 2024Paolo Bonzini talk contribs 2,764 bytes +2,764 Created page with "<pre> use crate::bindings; use crate::bindings::error_setg_internal; use std::fmt; use std::fmt::Display; use std::ptr; #[derive(Debug, Default)] pub struct Error { msg: Option<String>, cause: Option<Box<dyn std::error::Error>>, location: Option<(String, u32)>, } impl std::error::Error for Error { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { self.cause.as_deref() } fn description(&self) -> &str { self.msg.as_..."