pub struct LangSpec {
pub engine_num_structures: usize,
pub engine_structures: Vec<String>,
pub constants: Vec<BuiltinConstant>,
pub functions: Vec<BuiltinFunction>,
}Expand description
Parsed builtin declarations from nwscript.nss.
Fields§
§engine_num_structures: usizeNumber declared by ENGINE_NUM_STRUCTURES.
engine_structures: Vec<String>Engine structure names in index order.
constants: Vec<BuiltinConstant>Builtin constants in declaration order.
functions: Vec<BuiltinFunction>Builtin functions in declaration order.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LangSpec
impl<'de> Deserialize<'de> for LangSpec
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
impl StructuralPartialEq for LangSpec
Auto Trait Implementations§
impl Freeze for LangSpec
impl RefUnwindSafe for LangSpec
impl Send for LangSpec
impl Sync for LangSpec
impl Unpin for LangSpec
impl UnsafeUnpin for LangSpec
impl UnwindSafe for LangSpec
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