MCPcopy Create free account
hub / github.com/SSheldon/rust-objc / weak

Method weak

src/rc/strong.rs:40–42  ·  view source on GitHub ↗

Returns a `WeakPtr` to self.

(&self)

Source from the content-addressed store, hash-verified

38
39 /// Returns a `WeakPtr` to self.
40 pub fn weak(&self) -> WeakPtr {
41 unsafe { WeakPtr::new(self.0) }
42 }
43}
44
45impl Drop for StrongPtr {

Callers 2

test_weakFunction · 0.80
test_weak_copyFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_weakFunction · 0.64
test_weak_copyFunction · 0.64