Struct rat_in_a_tube::CompiledNode
source · pub struct CompiledNode { /* private fields */ }
Expand description
Compiled node result.
Implementations§
source§impl CompiledNode
impl CompiledNode
sourcepub fn get_value_type(&self) -> ValueType
pub fn get_value_type(&self) -> ValueType
Get the return value type.
sourcepub fn get_string_data(&self) -> Option<&str>
pub fn get_string_data(&self) -> Option<&str>
Get the string data of the node, if any.
sourcepub fn get_string_data_cstr(&self) -> Option<&CStr>
pub fn get_string_data_cstr(&self) -> Option<&CStr>
Get the string data of the node, if any, as a null terminated C string.
sourcepub fn get_next_node_index(&self) -> Option<usize>
pub fn get_next_node_index(&self) -> Option<usize>
Get the next node index, if any.
sourcepub fn get_file(&self) -> usize
pub fn get_file(&self) -> usize
Get the file index of the node, 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 node, starting at 1.
Auto Trait Implementations§
impl RefUnwindSafe for CompiledNode
impl Send for CompiledNode
impl Sync for CompiledNode
impl Unpin for CompiledNode
impl UnwindSafe for CompiledNode
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