Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

whats the difference between Iter and into_iter rust

The iterator returned by into_iter may yield any of 
T, &T or &mut T, depending on the context.

The iterator returned by iter will yield &T, by convention.

The iterator returned by iter_mut will yield &mut T, by convention.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #whats #difference #Iter #rust
ADD COMMENT
Topic
Name
3+4 =