File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,7 +82,6 @@ mod multi;
8282mod scope;
8383mod state;
8484mod stdlib;
85- mod string;
8685mod thread;
8786mod traits;
8887mod types;
@@ -94,6 +93,7 @@ mod vector;
9493pub mod debug;
9594pub mod function;
9695pub mod prelude;
96+ pub mod string;
9797pub mod table;
9898
9999pub use bstr:: BString ;
@@ -106,7 +106,7 @@ pub use crate::multi::{MultiValue, Variadic};
106106pub use crate :: scope:: Scope ;
107107pub use crate :: state:: { GCMode , Lua , LuaOptions , WeakLua } ;
108108pub use crate :: stdlib:: StdLib ;
109- pub use crate :: string:: { BorrowedBytes , BorrowedStr , LuaString , LuaString as String } ;
109+ pub use crate :: string:: { BorrowedBytes , BorrowedStr , LuaString } ;
110110pub use crate :: table:: Table ;
111111pub use crate :: thread:: { Thread , ThreadStatus } ;
112112pub use crate :: traits:: {
@@ -122,6 +122,9 @@ pub use crate::userdata::{
122122} ;
123123pub use crate :: value:: { Nil , Value } ;
124124
125+ #[ doc( hidden) ]
126+ pub use crate :: string:: LuaString as String ;
127+
125128#[ cfg( not( feature = "luau" ) ) ]
126129pub use crate :: debug:: HookTriggers ;
127130
Original file line number Diff line number Diff line change 1+ //! Lua string handling.
2+ //!
3+ //! This module provides types for working with Lua strings from Rust.
4+ //!
5+ //! # Main Types
6+ //!
7+ //! - [`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.
10+
111use std:: borrow:: { Borrow , Cow } ;
212use std:: hash:: { Hash , Hasher } ;
313use std:: ops:: Deref ;
You can’t perform that action at this time.
0 commit comments