File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11//! Lua debugging interface.
22//!
33//! This module provides access to the Lua debug interface, allowing inspection of the call stack,
4- //! and function information. The main types are [`Debug`] for accessing debug information and
5- //! [`HookTriggers`] for configuring debug hooks.
4+ //! and function information. The main types are [`struct@ Debug`] for accessing debug information
5+ //! and [`HookTriggers`] for configuring debug hooks.
66
77use std:: borrow:: Cow ;
88use std:: os:: raw:: c_int;
Original file line number Diff line number Diff line change @@ -909,8 +909,8 @@ impl Lua {
909909
910910 /// Gets information about the interpreter runtime stack at the given level.
911911 ///
912- /// This function calls callback `f`, passing the [`Debug`] structure that can be used to get
913- /// information about the function executing at a given level.
912+ /// This function calls callback `f`, passing the [`struct@ Debug`] structure that can be used to
913+ /// get information about the function executing at a given level.
914914 /// Level `0` is the current running function, whereas level `n+1` is the function that has
915915 /// called level `n` (except for tail calls, which do not count in the stack).
916916 pub fn inspect_stack < R > ( & self , level : usize , f : impl FnOnce ( & Debug ) -> R ) -> Option < R > {
Original file line number Diff line number Diff line change 55//! # Main Types
66//!
77//! - [`LuaString`] - A handle to an internal Lua string (may not be valid UTF-8).
8- //! - [`BorrowedStr`] - A borrowed `&str` view of a Lua string that holds a strong reference to the Lua state.
9- //! - [`BorrowedBytes`] - A borrowed `&[u8]` view of a Lua string that holds a strong reference to the Lua state.
8+ //! - [`BorrowedStr`] - A borrowed `&str` view of a Lua string that holds a strong reference to the
9+ //! Lua state.
10+ //! - [`BorrowedBytes`] - A borrowed `&[u8]` view of a Lua string that holds a strong reference to
11+ //! the Lua state.
1012
1113use std:: borrow:: { Borrow , Cow } ;
1214use std:: hash:: { Hash , Hasher } ;
Original file line number Diff line number Diff line change @@ -449,6 +449,8 @@ impl Thread {
449449 /// Please note that Luau links environment table with chunk when loading it into Lua state.
450450 /// Therefore you need to load chunks into a thread to link with the thread environment.
451451 ///
452+ /// [`Lua::sandbox`]: crate::Lua::sandbox
453+ ///
452454 /// # Examples
453455 ///
454456 /// ```
You can’t perform that action at this time.
0 commit comments