|
|
|
|
|
by jruderman
4405 days ago
|
|
The first set of questions was about how the borrow checker understands vectors. ~ How do you tie the ownership of [the element array] to the vector? How does the compiler know that when you take a reference into the element array, [it should treat the vector itself as borrowed]? ~ What happens if I write my own library class [instead of using one that's part of the standard library like vec]? |
|