as_str() replaced by str_view()

This commit is contained in:
Christoffer Lerno
2023-09-24 23:50:16 +02:00
parent 3675254af4
commit a1ecf2211f
31 changed files with 223 additions and 222 deletions

View File

@@ -42,7 +42,7 @@ fn void ByteWriter.destroy(&self)
*self = { };
}
fn String ByteWriter.as_str(&self) @inline
fn String ByteWriter.str_view(&self) @inline
{
return (String)self.bytes[:self.index];
}