-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Closed as not planned
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: 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.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Feature gate: #![feature(pointer_is_aligned_for)]
This is a tracking issue for adding the convenience method is_aligned_for to *const T, *mut T and NonNull<T>.
impl<T: ?Sized> *const T {
#[must_use]
#[inline]
pub fn is_aligned_for<U: Sized>(self) -> bool;
}
impl<T: ?Sized> *mut T {
#[must_use]
#[inline]
pub fn is_aligned_for<U: Sized>(self) -> bool;
}
impl<T: ?Sized> NonNull<T> {
#[must_use]
#[inline]
pub fn is_aligned_for<U: Sized>(self) -> bool;
}Steps / History
- API change proposal (ACP): ACP:
ptr::is_aligned_for::<U>libs-team#588 - Implementation: Implement
ptr::is_aligned_forandNonNull::is_aligned_for. #140982 - Final comment period (FCP)
- Stabilization PR
Unresolved Questions
None yet.
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: 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.Relevant to the library API team, which will review and decide on the PR/issue.