Skip to content

Tracking Issue for const_mut_cursor #130801

Closed
@bjoernager

Description

@bjoernager

Feature gate: #![feature(const_mut_cursor)]

This is a tracking issue for marking the get_mut and set_position methods in std::io::Cursor as const.

Public API

// std::io

impl<T> Cursor<T> {
    pub const fn get_mut(&mut self) -> &mut T;

    pub const fn set_position(&mut self, pos: u64);
}

Steps / History

Unresolved Questions

  • Can we also "constify" into_inner?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions