Migrate module mounting to Rust

This commit is contained in:
topjohnwu
2025-05-08 21:00:40 -07:00
committed by John Wu
parent 4c89c7e2b3
commit 527bbc0368
11 changed files with 615 additions and 675 deletions

View File

@@ -68,7 +68,7 @@ pub mod buf {
// Trait definitions
pub trait Utf8CStrBuf: Write + AsRef<Utf8CStr> + Deref<Target = Utf8CStr> {
pub trait Utf8CStrBuf: Display + Write + AsRef<Utf8CStr> + Deref<Target = Utf8CStr> {
// The length of the string without the terminating null character.
// assert_true(len <= capacity - 1)
fn len(&self) -> usize;