minxp 0.1.7

Partial reimplementation of std for no-std on unsupported Windows targets.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use alloc::string::String;
use core::fmt::{Display, Formatter};

pub type Result<T> = core::result::Result<T, Error>;

#[derive(Debug)]
pub struct Error {
    pub(crate) reason: String
}

impl Display for Error {
    fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result {
        core::fmt::Debug::fmt(self, f)
    }
}