unsafe fn cast_access<TargetAccess: ThreadAccess>(self) -> Ref<T, TargetAccess> {
        let ret = Ref::move_from_sys(self.ptr.as_non_null());
        std::mem::forget(self);
        ret
    }
/// Casts the access type of `self` to `TargetAccess`, moving the reference.
///
/// # Safety
///
/// The cast must be valid.
Casts the access type of `self` to `TargetAccess`, moving the reference.
Casts the access type of ` self ` to ` TargetAccess ` moving the reference .
unsafe fn cast_access<TargetAccess: ThreadAccess>(self) -> Ref<T, TargetAccess> {
        let ret = Ref::move_from_sys(self.ptr.as_non_null());
        std::mem::forget(self);
        ret
    }
unsafe fn cast_access < TargetAccess : ThreadAccess > ( self ) -> Ref < T , TargetAccess > { let ret = Ref :: move_from_sys ( self . ptr . as_non_null ( ) ) ; std :: mem :: forget ( self ) ; ret }
Casts the access type of `self` to `TargetAccess`, moving the reference.
Casts the access type of ` self ` to ` TargetAccess ` moving the reference .
self
self
safety
The cast must be valid.
The cast must be valid .