Back

rust - 什么是 'a : lifetime of a,

发布时间: 2020-05-19 03:38:00

参考:https://stackoverflow.com/questions/47640550/what-is-a-in-rust-language/47641166

TODO 待整理

elide, elision 概念相关。 实际上是一种缩写的完整形式

pub fn print(my_string: &str)

pub fn print<'a> (mystring: &'a str) 

Back