rust/string

string

dz / rust / string

Node Tree

Nodes

get
content String.get() can be used to get a slice of a string, something like =str.get(1..)= is like =s[1:]= in python.
parents rust/string
hyperlink https://doc.rust-lang.org/std/string/struct.String.html#method.get
location knowledge/rust.dz:122

2024-12-09 13:42 Using get() with is how you can get substrings of slices in Rust

Context: needed to get "name" from "+name". in Dagzet Can be done with something like label.get(1..).unwrap().