Loading tutorials
Vec<T>. A slice is a borrowed view, so ownership rules still apply.1 min readString and Vec<T> use. A slice is a borrowed view into existing data. This chapter focuses on &str, function parameters, and borrowing rules.1 min readVec<T>. A mutable slice, &mut [T], is a borrowed, writable view into contiguous elements. It does not own or copy the data.1 min read