pub struct LuaHeader {
pub version: String,
pub format: u8,
pub instruction_bytes: u8,
pub integer_bytes: u8,
pub number_bytes: u8,
pub endian: &'static str,
}Expand description
What a fingerprint says, field by field: the Lua a bundle’s bytecode was compiled
for. Display is the one-line form the mismatch message and htl bundle info use,
Lua 5.4, format 0, 4/8/8, little-endian (the three numbers are the sizes of
Instruction, lua_Integer and lua_Number in bytes).
Fields§
§version: String"5.4": the version byte, split.
format: u8The bytecode format number (0 for stock Lua).
instruction_bytes: u8sizeof(Instruction). These three are what make a bundle portable or not: two
hosts agreeing on all of them, the version and the endianness can load each
other’s bytecode whatever CPU or operating system they run on.
integer_bytes: u8sizeof(lua_Integer). 8 unless the host’s Lua was built with another
LUA_INT_TYPE, which is one of the two cases --source exists for.
number_bytes: u8sizeof(lua_Number). 8 — a double — unless the host’s Lua was built with another
LUA_FLOAT_TYPE.
endian: &'static str"little" or "big": how LUAC_INT came out.
Implementations§
Trait Implementations§
impl Eq for LuaHeader
impl StructuralPartialEq for LuaHeader
Auto Trait Implementations§
impl Freeze for LuaHeader
impl RefUnwindSafe for LuaHeader
impl Send for LuaHeader
impl Sync for LuaHeader
impl Unpin for LuaHeader
impl UnsafeUnpin for LuaHeader
impl UnwindSafe for LuaHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more