unsafe fn unsafe_from_any_pointer(any: AnyObj) -> (Self, SharedPointerGuard) {
        let inner = ptr::NonNull::from(Box::leak(Box::new(SharedBox {
            access: Access::new(true),
            count: Cell::new(2),
            data: any.into(),
        })));

        let guard = SharedPointerGuard {
            _inner: RawDrop::take_shared_box(inner),
        };

        let value = Self { inner };
        (value, guard)
    }
/// Construct a `Shared<Any>` from an Any which is expected to wrap a
/// pointer, that will be "taken" once the returned guard is dropped.
///
/// # Safety
///
/// The reference must be valid for the duration of the guard.
Construct a `Shared` from an Any which is expected to wrap a
pointer, that will be "taken" once the returned guard is dropped.
Construct a ` Shared ` from an Any which is expected to wrap a pointer that will be " taken " once the returned guard is dropped .
unsafe fn unsafe_from_any_pointer(any: AnyObj) -> (Self, SharedPointerGuard) {
        let inner = ptr::NonNull::from(Box::leak(Box::new(SharedBox {
            access: Access::new(true),
            count: Cell::new(2),
            data: any.into(),
        })));
        let guard = SharedPointerGuard {
            _inner: RawDrop::take_shared_box(inner),
        };
        let value = Self { inner };
        (value, guard)
    }
unsafe fn unsafe_from_any_pointer ( any : AnyObj ) -> ( Self , SharedPointerGuard ) { let inner = ptr :: NonNull :: from ( Box :: leak ( Box :: new ( SharedBox { access : Access :: new ( true ) , count : Cell :: new ( 2 ) , data : any . into ( ) , } ) ) ) ; let guard = SharedPointerGuard { _inner : RawDrop :: take_shared_box ( inner ) , } ; let value = Self { inner } ; ( value , guard ) }
Construct a `Shared<Any>` from an Any which is expected to wrap a
pointer, that will be "taken" once the returned guard is dropped.
Construct a ` Shared<Any > ` from an Any which is expected to wrap a pointer that will be " taken " once the returned guard is dropped .
any
AnyObj
any
AnyObj
safety
The reference must be valid for the duration of the guard.
The reference must be valid for the duration of the guard .