pub struct LuaString { /* private fields */ }Implementations§
Source§impl LuaString
impl LuaString
pub fn from_bytes(b: Vec<u8>) -> Self
pub fn placeholder() -> Self
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 is_reserved_word(&self) -> bool
pub fn hash_bytes(bytes: &[u8], seed: u32) -> u32
pub fn hash_long(&mut self) -> u32
Trait Implementations§
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.
impl Eq for LuaString
Auto Trait Implementations§
impl Freeze for LuaString
impl RefUnwindSafe for LuaString
impl !Send for LuaString
impl !Sync 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