Struct godot_pluginscript_language_desc

Source
#[repr(C)]
pub struct godot_pluginscript_language_desc {
Show 35 fields pub name: *const i8, pub type_: *const i8, pub extension: *const i8, pub recognized_extensions: *mut *const i8, pub init: Option<unsafe extern "C" fn() -> *mut c_void>, pub finish: Option<unsafe extern "C" fn(*mut c_void)>, pub reserved_words: *mut *const i8, pub comment_delimiters: *mut *const i8, pub string_delimiters: *mut *const i8, pub has_named_classes: bool, pub supports_builtin_mode: bool, pub get_template_source_code: Option<unsafe extern "C" fn(*mut c_void, *const godot_string, *const godot_string) -> godot_string>, pub validate: Option<unsafe extern "C" fn(*mut c_void, *const godot_string, *mut i32, *mut i32, *mut godot_string, *const godot_string, *mut godot_pool_string_array) -> bool>, pub find_function: Option<unsafe extern "C" fn(*mut c_void, *const godot_string, *const godot_string) -> i32>, pub make_function: Option<unsafe extern "C" fn(*mut c_void, *const godot_string, *const godot_string, *const godot_pool_string_array) -> godot_string>, pub complete_code: Option<unsafe extern "C" fn(*mut c_void, *const godot_string, *const godot_string, *mut c_void, *mut godot_array, *mut bool, *mut godot_string) -> u32>, pub auto_indent_code: Option<unsafe extern "C" fn(*mut c_void, *mut godot_string, i32, i32)>, pub add_global_constant: Option<unsafe extern "C" fn(*mut c_void, *const godot_string, *const godot_variant)>, pub debug_get_error: Option<unsafe extern "C" fn(*mut c_void) -> godot_string>, pub debug_get_stack_level_count: Option<unsafe extern "C" fn(*mut c_void) -> i32>, pub debug_get_stack_level_line: Option<unsafe extern "C" fn(*mut c_void, i32) -> i32>, pub debug_get_stack_level_function: Option<unsafe extern "C" fn(*mut c_void, i32) -> godot_string>, pub debug_get_stack_level_source: Option<unsafe extern "C" fn(*mut c_void, i32) -> godot_string>, pub debug_get_stack_level_locals: Option<unsafe extern "C" fn(*mut c_void, i32, *mut godot_pool_string_array, *mut godot_array, i32, i32)>, pub debug_get_stack_level_members: Option<unsafe extern "C" fn(*mut c_void, i32, *mut godot_pool_string_array, *mut godot_array, i32, i32)>, pub debug_get_globals: Option<unsafe extern "C" fn(*mut c_void, *mut godot_pool_string_array, *mut godot_array, i32, i32)>, pub debug_parse_stack_level_expression: Option<unsafe extern "C" fn(*mut c_void, i32, *const godot_string, i32, i32) -> godot_string>, pub get_public_functions: Option<unsafe extern "C" fn(*mut c_void, *mut godot_array)>, pub get_public_constants: Option<unsafe extern "C" fn(*mut c_void, *mut godot_dictionary)>, pub profiling_start: Option<unsafe extern "C" fn(*mut c_void)>, pub profiling_stop: Option<unsafe extern "C" fn(*mut c_void)>, pub profiling_get_accumulated_data: Option<unsafe extern "C" fn(*mut c_void, *mut godot_pluginscript_profiling_data, i32) -> i32>, pub profiling_get_frame_data: Option<unsafe extern "C" fn(*mut c_void, *mut godot_pluginscript_profiling_data, i32) -> i32>, pub profiling_frame: Option<unsafe extern "C" fn(*mut c_void)>, pub script_desc: godot_pluginscript_script_desc,
}

Fields§

§name: *const i8§type_: *const i8§extension: *const i8§recognized_extensions: *mut *const i8§init: Option<unsafe extern "C" fn() -> *mut c_void>§finish: Option<unsafe extern "C" fn(*mut c_void)>§reserved_words: *mut *const i8§comment_delimiters: *mut *const i8§string_delimiters: *mut *const i8§has_named_classes: bool§supports_builtin_mode: bool§get_template_source_code: Option<unsafe extern "C" fn(*mut c_void, *const godot_string, *const godot_string) -> godot_string>§validate: Option<unsafe extern "C" fn(*mut c_void, *const godot_string, *mut i32, *mut i32, *mut godot_string, *const godot_string, *mut godot_pool_string_array) -> bool>§find_function: Option<unsafe extern "C" fn(*mut c_void, *const godot_string, *const godot_string) -> i32>§make_function: Option<unsafe extern "C" fn(*mut c_void, *const godot_string, *const godot_string, *const godot_pool_string_array) -> godot_string>§complete_code: Option<unsafe extern "C" fn(*mut c_void, *const godot_string, *const godot_string, *mut c_void, *mut godot_array, *mut bool, *mut godot_string) -> u32>§auto_indent_code: Option<unsafe extern "C" fn(*mut c_void, *mut godot_string, i32, i32)>§add_global_constant: Option<unsafe extern "C" fn(*mut c_void, *const godot_string, *const godot_variant)>§debug_get_error: Option<unsafe extern "C" fn(*mut c_void) -> godot_string>§debug_get_stack_level_count: Option<unsafe extern "C" fn(*mut c_void) -> i32>§debug_get_stack_level_line: Option<unsafe extern "C" fn(*mut c_void, i32) -> i32>§debug_get_stack_level_function: Option<unsafe extern "C" fn(*mut c_void, i32) -> godot_string>§debug_get_stack_level_source: Option<unsafe extern "C" fn(*mut c_void, i32) -> godot_string>§debug_get_stack_level_locals: Option<unsafe extern "C" fn(*mut c_void, i32, *mut godot_pool_string_array, *mut godot_array, i32, i32)>§debug_get_stack_level_members: Option<unsafe extern "C" fn(*mut c_void, i32, *mut godot_pool_string_array, *mut godot_array, i32, i32)>§debug_get_globals: Option<unsafe extern "C" fn(*mut c_void, *mut godot_pool_string_array, *mut godot_array, i32, i32)>§debug_parse_stack_level_expression: Option<unsafe extern "C" fn(*mut c_void, i32, *const godot_string, i32, i32) -> godot_string>§get_public_functions: Option<unsafe extern "C" fn(*mut c_void, *mut godot_array)>§get_public_constants: Option<unsafe extern "C" fn(*mut c_void, *mut godot_dictionary)>§profiling_start: Option<unsafe extern "C" fn(*mut c_void)>§profiling_stop: Option<unsafe extern "C" fn(*mut c_void)>§profiling_get_accumulated_data: Option<unsafe extern "C" fn(*mut c_void, *mut godot_pluginscript_profiling_data, i32) -> i32>§profiling_get_frame_data: Option<unsafe extern "C" fn(*mut c_void, *mut godot_pluginscript_profiling_data, i32) -> i32>§profiling_frame: Option<unsafe extern "C" fn(*mut c_void)>§script_desc: godot_pluginscript_script_desc

Trait Implementations§

Source§

impl Clone for godot_pluginscript_language_desc

Source§

fn clone(&self) -> godot_pluginscript_language_desc

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for godot_pluginscript_language_desc

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for godot_pluginscript_language_desc

Source§

fn default() -> godot_pluginscript_language_desc

Returns the “default value” for a type. Read more
Source§

impl Copy for godot_pluginscript_language_desc

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.