A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/rust-lang/rust/issues/141221 below:

Tracking Issue for `#![feature(pointer_try_cast_aligned)]` · Issue #141221 · rust-lang/rust · GitHub

Feature gate: #![feature(pointer_try_cast_aligned)]

This is a tracking issue for adding the convenience method try_cast_aligned to *const T, *mut T and NonNull<T>.

impl<T: ?Sized> *const T {
    pub fn try_cast_aligned<U: Sized>(self) -> Option<*const U>;
}

impl<T: ?Sized> *mut T {
    pub fn try_cast_aligned<U: Sized>(self) -> Option<*mut U>;
}

impl<T: ?Sized> NonNull<T> {
    pub fn try_cast_aligned<U: Sized>(self) -> Option<NonNull<U>>;
}
Steps / History Unresolved Questions

None yet.


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