Struct sljit_compiler

Source
#[repr(C)]
pub struct sljit_compiler {
Show 31 fields pub error: sljit_s32, pub options: sljit_s32, pub labels: *mut sljit_label, pub jumps: *mut sljit_jump, pub consts: *mut sljit_const, pub last_label: *mut sljit_label, pub last_jump: *mut sljit_jump, pub last_const: *mut sljit_const, pub allocator_data: *mut c_void, pub user_data: *mut c_void, pub buf: *mut sljit_memory_fragment, pub abuf: *mut sljit_memory_fragment, pub label_count: sljit_uw, pub scratches: sljit_s32, pub saveds: sljit_s32, pub fscratches: sljit_s32, pub fsaveds: sljit_s32, pub vscratches: sljit_s32, pub vsaveds: sljit_s32, pub local_size: sljit_s32, pub size: sljit_uw, pub executable_offset: sljit_sw, pub executable_size: sljit_uw, pub mode32: sljit_s32, pub verbose: *mut FILE, pub last_flags: sljit_s32, pub last_return: sljit_s32, pub logical_local_size: sljit_s32, pub real_fscratches: sljit_s32, pub real_fsaveds: sljit_s32, pub skip_checks: sljit_s32,
}

Fields§

§error: sljit_s32§options: sljit_s32§labels: *mut sljit_label§jumps: *mut sljit_jump§consts: *mut sljit_const§last_label: *mut sljit_label§last_jump: *mut sljit_jump§last_const: *mut sljit_const§allocator_data: *mut c_void§user_data: *mut c_void§buf: *mut sljit_memory_fragment§abuf: *mut sljit_memory_fragment§label_count: sljit_uw§scratches: sljit_s32§saveds: sljit_s32§fscratches: sljit_s32§fsaveds: sljit_s32§vscratches: sljit_s32§vsaveds: sljit_s32§local_size: sljit_s32§size: sljit_uw§executable_offset: sljit_sw§executable_size: sljit_uw§mode32: sljit_s32§verbose: *mut FILE§last_flags: sljit_s32§last_return: sljit_s32§logical_local_size: sljit_s32§real_fscratches: sljit_s32§real_fsaveds: sljit_s32§skip_checks: sljit_s32

Implementations§

Source§

impl sljit_compiler

Source

pub fn builder() -> sljit_compilerBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>

Create a builder for building sljit_compiler. On the builder, call .error(...), .options(...), .labels(...), .jumps(...), .consts(...), .last_label(...), .last_jump(...), .last_const(...), .allocator_data(...), .user_data(...), .buf(...), .abuf(...), .label_count(...), .scratches(...), .saveds(...), .fscratches(...), .fsaveds(...), .vscratches(...), .vsaveds(...), .local_size(...), .size(...), .executable_offset(...), .executable_size(...), .mode32(...), .verbose(...), .last_flags(...), .last_return(...), .logical_local_size(...), .real_fscratches(...), .real_fsaveds(...), .skip_checks(...) to set the values of the fields. Finally, call .build() to create the instance of sljit_compiler.

Trait Implementations§

Source§

impl Clone for sljit_compiler

Source§

fn clone(&self) -> sljit_compiler

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 ConstDefault for sljit_compiler

Source§

const DEFAULT: Self

The constant default value.
Source§

impl Debug for sljit_compiler

Source§

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

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

impl Hash for sljit_compiler

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Copy for sljit_compiler

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, 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.