Struct rat_in_a_tube::CompiledScript
source · pub struct CompiledScript { /* private fields */ }
Expand description
Compiled script result.
Implementations§
source§impl CompiledScript
impl CompiledScript
sourcepub fn get_name_cstr(&self) -> &CStr
pub fn get_name_cstr(&self) -> &CStr
Get the name of the script as a null terminated C string.
sourcepub fn get_value_type(&self) -> ValueType
pub fn get_value_type(&self) -> ValueType
Get the return value type.
sourcepub fn get_type(&self) -> ScriptType
pub fn get_type(&self) -> ScriptType
Get the script type.
sourcepub fn get_first_node_index(&self) -> usize
pub fn get_first_node_index(&self) -> usize
Get the index of the first node.
sourcepub fn get_file(&self) -> usize
pub fn get_file(&self) -> usize
Get the file index of the script, starting at 0.
This corresponds to CompiledScriptData::get_files
.
sourcepub fn get_column(&self) -> usize
pub fn get_column(&self) -> usize
Get the column index of the script, starting at 1.
sourcepub fn get_parameters(&self) -> &[CompiledScriptParameter]
pub fn get_parameters(&self) -> &[CompiledScriptParameter]
Get the script parameters for this function.
Auto Trait Implementations§
impl RefUnwindSafe for CompiledScript
impl Send for CompiledScript
impl Sync for CompiledScript
impl Unpin for CompiledScript
impl UnwindSafe for CompiledScript
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