Skip to main content

reb_display_data

Struct reb_display_data 

Source
#[repr(C)]
pub struct reb_display_data {
Show 30 fields pub s: reb_display_settings, pub r: *mut reb_simulation, pub r_copy: *mut reb_simulation, pub screenshot: *mut c_void, pub particle_data: *mut reb_vec4df, pub orbit_data: *mut reb_orbit_opengl, pub N_allocated: u64, pub mouse_x: f64, pub mouse_y: f64, pub retina: f64, pub take_one_screenshot: c_int, pub need_copy: c_int, pub mutex: pthread_mutex_t, pub compute_thread: pthread_t, pub breadcrumb_last_steps_done: u64, pub breadcrumb_N_allocated: c_uint, pub breadcrumb_current_index: c_uint, pub mouse_action: c_uint, pub key_mods: c_uint, pub particle_buffer: c_uint, pub particle_buffer_current: c_uint, pub orbit_buffer: c_uint, pub orbit_buffer_current: c_uint, pub window: *mut c_void, pub shader_simplefont: reb_display_data__bindgen_ty_1, pub shader_box: reb_display_data__bindgen_ty_2, pub shader_point: reb_display_data__bindgen_ty_3, pub shader_sphere: reb_display_data__bindgen_ty_4, pub shader_orbit: reb_display_data__bindgen_ty_5, pub shader_plane: reb_display_data__bindgen_ty_6,
}

Fields§

§s: reb_display_settings§r: *mut reb_simulation§r_copy: *mut reb_simulation§screenshot: *mut c_void§particle_data: *mut reb_vec4df§orbit_data: *mut reb_orbit_opengl§N_allocated: u64§mouse_x: f64§mouse_y: f64§retina: f64§take_one_screenshot: c_int§need_copy: c_int§mutex: pthread_mutex_t§compute_thread: pthread_t§breadcrumb_last_steps_done: u64§breadcrumb_N_allocated: c_uint§breadcrumb_current_index: c_uint§mouse_action: c_uint§key_mods: c_uint§particle_buffer: c_uint§particle_buffer_current: c_uint§orbit_buffer: c_uint§orbit_buffer_current: c_uint§window: *mut c_void§shader_simplefont: reb_display_data__bindgen_ty_1§shader_box: reb_display_data__bindgen_ty_2§shader_point: reb_display_data__bindgen_ty_3§shader_sphere: reb_display_data__bindgen_ty_4§shader_orbit: reb_display_data__bindgen_ty_5§shader_plane: reb_display_data__bindgen_ty_6

Trait Implementations§

Source§

impl Clone for reb_display_data

Source§

fn clone(&self) -> reb_display_data

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for reb_display_data

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.