Struct luac_parser::LuaHeader
source · pub struct LuaHeader {
pub lua_version: u8,
pub format_version: u8,
pub big_endian: bool,
pub int_size: u8,
pub size_t_size: u8,
pub instruction_size: u8,
pub number_size: u8,
pub number_integral: bool,
pub stripped: bool,
pub has_ffi: bool,
}
Fields§
§lua_version: u8
§format_version: u8
§big_endian: bool
§int_size: u8
§size_t_size: u8
§instruction_size: u8
§number_size: u8
§number_integral: bool
§stripped: bool
§has_ffi: bool
Implementations§
Trait Implementations§
source§impl<'__de> BorrowDecode<'__de> for LuaHeader
impl<'__de> BorrowDecode<'__de> for LuaHeader
source§fn borrow_decode<__D: BorrowDecoder<'__de>>(
decoder: &mut __D
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de>>( decoder: &mut __D ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
source§impl<'de> Deserialize<'de> for LuaHeader
impl<'de> Deserialize<'de> for LuaHeader
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<LuaHeader> for LuaHeader
impl PartialEq<LuaHeader> for LuaHeader
impl Eq for LuaHeader
impl StructuralEq for LuaHeader
impl StructuralPartialEq for LuaHeader
Auto Trait Implementations§
impl RefUnwindSafe for LuaHeader
impl Send for LuaHeader
impl Sync for LuaHeader
impl Unpin 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
Mutably borrows from an owned value. Read more
source§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
source§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more