impl Debug
This commit is contained in:
parent
fc87672e10
commit
f596505bd7
|
|
@ -55,6 +55,12 @@ impl std::fmt::Binary for F8 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl std::fmt::Debug for F8 {
|
||||||
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
|
write!(f, "{self:#b}f8")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl From<u8> for F8 {
|
impl From<u8> for F8 {
|
||||||
fn from(v: u8) -> Self {
|
fn from(v: u8) -> Self {
|
||||||
if v == 0 {
|
if v == 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user