Trait Weak

Source
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ยง

Source

type A: ?Sized

Source

type Strong: Ptr<A = Self::A, Weak = Self>

Required Methodsยง

Source

fn upgrade_ptr(&self) -> Option<Self::Strong>

Source

fn value(&self) -> *const Self::A

Source

fn is_alive(&self) -> bool

Implementations on Foreign Typesยง

Sourceยง

impl<A: ?Sized> Weak for Weak<A>

Sourceยง

impl<A: ?Sized> Weak for Weak<A>

Implementorsยง