Feature gate: #![feature(pointer_is_aligned)]
Feature gate: #![feature(pointer_is_aligned_to)]
This is a tracking issue for ptr.is_aligned()
andptr.is_aligned_to(alignment)
.
impl *const T { // feature gate `pointer_is_aligned` was stabilized // pub fn is_aligned(self) -> bool where T: Sized; // feature gate `pointer_is_aligned_to` pub fn is_aligned_to(self, align: usize) -> bool; } // ... and the same for` *mut T` impl <T: ?Sized> NonNull<T> { pub const fn is_aligned_to(self, align: usize) -> bool; }Steps / History
pointer_is_aligned
:
pointer_is_aligned_to
:
NonNull
method to this gate Stabilize non_null_convenience
#124498mcobzarenco, jablonskim, MaxVerevkin, orzogc, joseluis and 2 more
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4