pub enum StringKind {
Short,
Long,
}Expand description
Whether a Lua string is short (interned) or long (not interned).
Corresponds to LUA_VSHRSTR / LUA_VLNGSTR tags from lobject.h.
§C mapping (types.tsv)
LUA_VSHRSTR → LuaStringImpl::Short (shrlen holds length 0..=40)
LUA_VLNGSTR → LuaStringImpl::Long (shrlen = 0xFF sentinel; u.lnglen holds length)Variants§
Trait Implementations§
Source§impl Clone for StringKind
impl Clone for StringKind
Source§fn clone(&self) -> StringKind
fn clone(&self) -> StringKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StringKind
impl Debug for StringKind
Source§impl PartialEq for StringKind
impl PartialEq for StringKind
Source§fn eq(&self, other: &StringKind) -> bool
fn eq(&self, other: &StringKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StringKind
impl Eq for StringKind
impl StructuralPartialEq for StringKind
Auto Trait Implementations§
impl Freeze for StringKind
impl RefUnwindSafe for StringKind
impl Send for StringKind
impl Sync for StringKind
impl Unpin for StringKind
impl UnsafeUnpin for StringKind
impl UnwindSafe for StringKind
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