What, no syntax for mutable borrowed region pointers?
This commit is contained in:
parent
743c1c37e8
commit
cc3bb7b68a
1 changed files with 0 additions and 4 deletions
|
|
@ -280,12 +280,8 @@ pub pure fn view<T>(v: &r/[T], start: uint, end: uint) -> &r/[T] {
|
|||
}
|
||||
|
||||
/// Return a slice that points into another slice.
|
||||
<<<<<<< HEAD
|
||||
#[inline(always)]
|
||||
pub pure fn mut_view<T>(v: &r/[mut T], start: uint, end: uint) -> &r/[mut T] {
|
||||
=======
|
||||
pub pure fn mut_view<T>(v: &mut r/[T], start: uint, end: uint) -> &mut r/[T] {
|
||||
>>>>>>> RIMOV, round 11
|
||||
assert (start <= end);
|
||||
assert (end <= len(v));
|
||||
do as_mut_buf(v) |p, _len| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue