zlacker

[parent] [thread] 0 comments
1. zozbot+(OP)[view] [source] 2025-08-22 16:53:39
str is not really a "primitive type", it only exists abstractly as an argument to type constructors - treating the & operator as a "type constructor" for that purpose, but including Box<>, Rc<>, Arc<> etc. So you can have Box<str> or Arc<str> in addition to &str or perhaps &mut str, but not really 'str' in isolation.
[go to top]