[ty] Reduce size of member table (#19572)

This commit is contained in:
Micha Reiser 2025-08-07 11:16:04 +02:00 committed by GitHub
parent cc97579c3b
commit b96aa4605b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 722 additions and 134 deletions

View file

@ -36,6 +36,10 @@ impl Name {
pub fn as_str(&self) -> &str {
self.0.as_str()
}
pub fn push_str(&mut self, s: &str) {
self.0.push_str(s);
}
}
impl Debug for Name {
@ -44,6 +48,13 @@ impl Debug for Name {
}
}
impl std::fmt::Write for Name {
fn write_str(&mut self, s: &str) -> std::fmt::Result {
self.0.push_str(s);
Ok(())
}
}
impl AsRef<str> for Name {
#[inline]
fn as_ref(&self) -> &str {