@@ -5,7 +5,6 @@ use std::mem;
55use std:: os:: raw:: { c_char, c_int, c_void} ;
66use std:: panic:: resume_unwind;
77use std:: ptr:: { self , NonNull } ;
8- use std:: result:: Result as StdResult ;
98use std:: sync:: Arc ;
109
1110use crate :: chunk:: ChunkMode ;
@@ -307,27 +306,27 @@ impl RawLua {
307306 res
308307 }
309308
310- /// See [`Lua::try_set_app_data`]
309+ /// Private version of [`Lua::try_set_app_data`]
311310 #[ inline]
312- pub ( crate ) fn try_set_app_data < T : MaybeSend + ' static > ( & self , data : T ) -> StdResult < Option < T > , T > {
311+ pub ( crate ) fn set_priv_app_data < T : MaybeSend + ' static > ( & self , data : T ) -> Option < T > {
313312 let extra = unsafe { & * self . extra . get ( ) } ;
314- extra. app_data . try_insert ( data)
313+ extra. app_data_priv . insert ( data)
315314 }
316315
317- /// See [`Lua::app_data_ref`]
316+ /// Private version of [`Lua::app_data_ref`]
318317 #[ track_caller]
319318 #[ inline]
320- pub ( crate ) fn app_data_ref_unguarded < T : ' static > ( & self ) -> Option < AppDataRef < T > > {
319+ pub ( crate ) fn priv_app_data_ref < T : ' static > ( & self ) -> Option < AppDataRef < T > > {
321320 let extra = unsafe { & * self . extra . get ( ) } ;
322- extra. app_data . borrow ( None )
321+ extra. app_data_priv . borrow ( None )
323322 }
324323
325- /// See [`Lua::app_data_mut`]
324+ /// Private version of [`Lua::app_data_mut`]
326325 #[ track_caller]
327326 #[ inline]
328- pub ( crate ) fn app_data_mut_unguarded < T : ' static > ( & self ) -> Option < AppDataRefMut < T > > {
327+ pub ( crate ) fn priv_app_data_mut < T : ' static > ( & self ) -> Option < AppDataRefMut < T > > {
329328 let extra = unsafe { & * self . extra . get ( ) } ;
330- extra. app_data . borrow_mut ( None )
329+ extra. app_data_priv . borrow_mut ( None )
331330 }
332331
333332 /// See [`Lua::create_registry_value`]
0 commit comments