mirror of
https://git.intege.rs/xlib/x.git
synced 2025-12-05 20:35:01 +00:00
impl Write for FixedVec<?,u8>
This commit is contained in:
@@ -111,3 +111,10 @@ impl<const MAX_LEN: usize, T> Drop for FixedVec<MAX_LEN, T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<const MAX_LEN: usize> core::fmt::Write for FixedVec<MAX_LEN, u8> {
|
||||||
|
fn write_str(&mut self, s: &str) -> core::fmt::Result {
|
||||||
|
self.extend(s.as_bytes().iter().cloned());
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user