pub struct LuaString { /* private fields */ }Implementations§
Source§impl LuaString
impl LuaString
pub fn from_bytes(b: Vec<u8>) -> LuaString
pub fn placeholder() -> LuaString
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_short(&self) -> bool
pub fn is_long(&self) -> bool
pub fn hash(&self) -> u32
pub fn buffer_bytes(&self) -> usize
pub fn is_reserved_word(&self) -> bool
pub fn hash_bytes(bytes: &[u8], seed: u32) -> u32
pub fn hash_long(&mut self) -> u32
Trait Implementations§
impl Eq for LuaString
Source§impl Trace for LuaString
LuaString — interned byte string. The Rc<[u8]> backing buffer is
owned, not GC-managed, so this impl is intentionally empty.
impl Trace for LuaString
LuaString — interned byte string. The Rc<[u8]> backing buffer is
owned, not GC-managed, so this impl is intentionally empty.
Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Concrete Rust type name for diagnostic/testC telemetry
(
Heap::type_name_count). Collector behavior must not branch on
this. The default covers container blanket impls, which are never
GC-boxed directly; concrete runtime types override it with
std::any::type_name::<Self>().fn trace(&self, _m: &mut Marker)
Auto Trait Implementations§
impl !Send for LuaString
impl !Sync for LuaString
impl Freeze for LuaString
impl RefUnwindSafe for LuaString
impl Unpin for LuaString
impl UnsafeUnpin for LuaString
impl UnwindSafe for LuaString
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more