#string
4 articles about string
Filter by topic
All#advanced#ai#allocation#associated-types#azure#basics#beginners#blanket-implementations#borrow-checker#borrowing#bounds#box#c#cache#closures#code-duplication#collections#concurrency#cosmos-db#dangling-pointer#data-races#deadlock#debugging#desktop#developer-tools#dioxus#dispatch#drain#drop#dynamic-dispatch#embedded#event-grid#fnmut#gc#generics#git#heap#higher-order-functions#integration#io-drivers#iterators#javascript#kql#library-design#lifetimes#llm#log-analytics#logic-apps#memory#monomorphization#object-safety#observability#operators#optimization#ownership#performance#plugins#retain#rust#service-bus#simd#sized#stack#standard-library#str#string#supertraits#trait-bounds#trait-coherence#traits#type-safety#typescript#unsized#vec
rustAugust 6, 2025
Where do string literals (&str) live?
String literals live in the binary's read-only data with a 'static lifetime — what that means for allocation, copying, and returning them.
rustAugust 4, 2025
Why &str Won't Fit &String in Rust: Fun Fixes for String Mismatches!
Why passing a &str where a &String is expected fails to compile, what deref coercion does and doesn't do, and how to fix the mismatch.
rustJuly 30, 2025
How does Cow<'a, B> (Copy-on-Write) work in Rust?
Cow<'a, B> lets a function borrow when it can and allocate only when it must. How copy-on-write works and when it pays for itself.
rustJuly 3, 2025
String vs. &str – Which to Use and When?
String vs str in Rust, covering memory management, ownership, and when to use each type.