Tracking Issue for get_disjoint_mut · Issue #104642 · rust-lang/rust (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@Mark-Simulacrum

Description

@Mark-Simulacrum

Feature gate: #![feature(get_many_mut)]

This is a tracking issue for get_disjoint_mut and get_disjoint_unchecked_mut, which provide &mut T access to multiple distinct slice elements.

Public API

impl [T] { pub unsafe fn get_disjoint_unchecked_mut(&mut self, indices: [usize; N]) -> [&mut T; N]; pub fn get_disjoint_mut(&mut self, indices: [usize; N]) -> Result<[&mut T; N], GetDisjointMutError>; }

pub struct GetDisjointMutError { /* private */ }

Steps / History

Unresolved Questions