daniel5151 / gdbstub

An ergonomic, featureful, and easy-to-integrate implementation of the GDB Remote Serial Protocol in Rust (with no-compromises #![no_std] support)
Other
291 stars 45 forks source link

Switch `enum Signal` to `struct Signal(pub u8)` with associated constants #120

Closed daniel5151 closed 10 months ago

daniel5151 commented 1 year ago

So, something like:

pub struct Signal(pub u8);

impl Signal {
    const SIGZERO: Self = Self(0);
    ...
}

Doing so will allow removing the unsafe version of from_protocol_u8.