doc.rust-lang.org
pub unsafe fn map_unchecked_mut<U, F>(self, func: F) -> Pin<&'a mut U>
Constructs a new pin by mapping the interior value.
method
core
Stable since 1.33.0
Version 1.100.0-nightly
doc.rust-lang.org
pub unsafe fn map_unchecked<U, F>(self, func: F) -> Pin<&'a U>
Constructs a new pin by mapping the interior value.
method
core
Stable since 1.33.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn into_ref(self) -> Pin<&'a T>
Converts this Pin<&mut T> into a Pin<&T> with the same lifetime.
method
core
Stable since 1.33.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn into_inner_unchecked(pin: Pin<Ptr>) -> Ptr
Unwraps this Pin<Ptr>, returning the underlying Ptr.
associated_function
core
Stable since 1.39.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn into_inner(pin: Pin<Ptr>) -> Ptr
Unwraps this Pin<Ptr>, returning the underlying pointer.
associated_function
core
Stable since 1.39.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn get_unchecked_mut(self) -> &'a mut T
Gets a mutable reference to the data inside of this Pin.
method
core
Stable since 1.33.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn get_ref(self) -> &'a T
Gets a shared reference out of a pin.
method
core
Stable since 1.33.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn get_mut(self) -> &'a mut T
Gets a mutable reference to the data inside of this Pin.
method
core
Stable since 1.33.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_ref(&self) -> Pin<&<Ptr as >::Target>
Gets a shared reference to the pinned value this Pin points to.
method
core
Stable since 1.33.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_mut(&mut self) -> Pin<&mut <Ptr as >::Target>
Gets a mutable reference to the pinned value this Pin<Ptr> points to.
method
core
Stable since 1.33.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_deref_mut(self: Pin<&mut Self>) -> Pin<&mut <Ptr as >::Target>
Gets Pin<&mut T> to the underlying pinned value from this nested Pin-pointer.
method
core
Stable since 1.84.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Pin<Ptr>
A pointer which pins its pointee in place.
struct
core
Stable since 1.33.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod pin
Types that pin data to a location in memory.
module
core
Stable since 1.33.0
Version 1.100.0-nightly
doc.rust-lang.org
pub auto trait UnwindSafe
A marker trait which represents "panic safe" types in Rust.
trait
core
Stable since 1.9.0
Version 1.100.0-nightly
doc.rust-lang.org
pub auto trait RefUnwindSafe
A marker trait representing types where a shared reference is considered unwind safe.
trait
core
Stable since 1.9.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct AssertUnwindSafe<T>
A simple wrapper around a type to assert that it is unwind safe.
struct
core
Stable since 1.9.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn as_str(&self) -> Option<&'static str>
Gets the formatted message, if it has no arguments to be formatted at runtime.
method
core
Stable since 1.81.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct PanicMessage<'a>
A message that was given to the panic!() macro.
struct
core
Stable since 1.81.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn payload(&self) -> &dyn crate::any::Any + Send
Returns the payload associated with the panic.
method
core
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn message(&self) -> PanicMessage<'_>
The message that was given to the panic! macro.
method
core
Stable since 1.81.0
Version 1.100.0-nightly