These are chat archives for rust-lang/rust
promise-rs) library and looks like I have impediment in understanding how static lifetime works .
staticlifetime denotes exactly lifetime of static items (that is, those that are available at compile-time and are inlined into binary as constants)
let x: String = ...what is the difference between
x.as_str()? Do I miss something or weren't these variants equivalent at some point of time?
@Crazy-Owl they should be exactly same AFAIK; one is just implementation of special
Borrow trait which tells that
&x can convert
&str, and another is explicit method on