pub(crate) fn raw_as_ptr(&self, expected: Hash) -> Result<*const (), AnyObjError> {
        // Safety: invariants are checked at construction time.
        match unsafe { (self.vtable.as_ptr)(self.data, expected) } {
            Some(ptr) => Ok(ptr),
            None => Err(AnyObjError::Cast),
        }
    }
/// Attempt to perform a conversion to a raw pointer.
Attempt to perform a conversion to a raw pointer.
Attempt to perform a conversion to a raw pointer .
pub(crate) fn raw_as_ptr(&self, expected: Hash) -> Result<*const (), AnyObjError> {
        // Safety: invariants are checked at construction time.
        match unsafe { (self.vtable.as_ptr)(self.data, expected) } {
            Some(ptr) => Ok(ptr),
            None => Err(AnyObjError::Cast),
        }
    }
pub ( crate ) fn raw_as_ptr ( & self , expected : Hash ) -> Result < * const ( ) , AnyObjError > { // Safety: invariants are checked at construction time. match unsafe { ( self . vtable . as_ptr ) ( self . data , expected ) } { Some ( ptr ) => Ok ( ptr ) , None => Err ( AnyObjError :: Cast ) , } }
Attempt to perform a conversion to a raw pointer.
Attempt to perform a conversion to a raw pointer .
&self
expected
Hash
&self
expected
Hash