allow access to inner uobject for casting
This commit is contained in:
		
							parent
							
								
									0d4dbfe552
								
							
						
					
					
						commit
						06c1a519d3
					
				| 
						 | 
				
			
			@ -401,6 +401,10 @@ impl Display for UFunction {
 | 
			
		|||
impl UObject {
 | 
			
		||||
    #![allow(dead_code)]
 | 
			
		||||
 | 
			
		||||
    pub fn inner(&self) -> NonNull<UnsafeCell<()>> {
 | 
			
		||||
        self.0
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    const fn raw_ptr(&self) -> *const u8 {
 | 
			
		||||
        unsafe { self.0.as_ref().get() as _ }
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue