Answer the question
In order to leave comments, you need to log in
Is Rust good for a beginner?
Rust is suitable for a newbie in programming? Not too heavy to start with?
Answer the question
In order to leave comments, you need to log in
Norm, simple and understandable language:
fn bar<'a>(p: &'a int) -> &'a int {
return p;
}
Here, in the next answer to the question, they attacked (unfairly) a person for an allegedly inadequate example. Well, ok, here's a completely normal code for you in growth, it's just a signature (only a signature, Carl!) of a rather popular split method of one of the most popular types of the standard library:
pub fn split<'a, P>(&'a self, pat: P) -> Split<'a, P>
where
P: Pattern<'a>
Pattern
and what can not be, and then learn zen along with the lifetime of the function . Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question