Struct rat_in_a_tube::CompiledGlobal
source · pub struct CompiledGlobal { /* private fields */ }
Expand description
Compiled global result.
Implementations§
source§impl CompiledGlobal
impl CompiledGlobal
sourcepub fn get_name_cstr(&self) -> &CStr
pub fn get_name_cstr(&self) -> &CStr
Get the name of the global as a null terminated C string.
sourcepub fn get_value_type(&self) -> ValueType
pub fn get_value_type(&self) -> ValueType
Get the value 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 global, 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 global, starting at 1.
Auto Trait Implementations§
impl RefUnwindSafe for CompiledGlobal
impl Send for CompiledGlobal
impl Sync for CompiledGlobal
impl Unpin for CompiledGlobal
impl UnwindSafe for CompiledGlobal
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