pub trait Weak: Sealed {
type A: ?Sized;
type Strong: Ptr<A = Self::A, Weak = Self>;
// Required methods
fn upgrade_ptr(&self) -> Option<Self::Strong>;
fn value(&self) -> *const Self::A;
fn is_alive(&self) -> bool;
}Required Associated Typesยง
Required Methodsยง
fn upgrade_ptr(&self) -> Option<Self::Strong>
fn value(&self) -> *const Self::A
fn is_alive(&self) -> bool
Dyn Compatibilityยง
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".