Skip to content

No Mutable Slice type exists. #14484

Closed
Closed
@arielb1

Description

@arielb1

Currently, Rust has a core::raw::Slice type but no core::raw::MutSlice type - and the slice type has a data: _T. This forces people who want to get a *mut T into adding an additional (_T -> *mut T) cast - which may be undefined behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions