#[repr(C)]pub struct CoreRenderImageCallback {
pub cb: CoreRenderImageCallbackType,
pub ctx: OptionRefAny,
}Expand description
Callback that returns a rendered OpenGL texture (usize placeholder)
Fields§
§cb: CoreRenderImageCallbackType§ctx: OptionRefAnyFor FFI: stores the foreign callable (e.g., PyFunction) Native Rust code sets this to None
Trait Implementations§
Source§impl Clone for CoreRenderImageCallback
impl Clone for CoreRenderImageCallback
Source§fn clone(&self) -> CoreRenderImageCallback
fn clone(&self) -> CoreRenderImageCallback
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoreRenderImageCallback
impl Debug for CoreRenderImageCallback
Source§impl From<usize> for CoreRenderImageCallback
Allow creating CoreRenderImageCallback from a raw function pointer (as usize)
Sets callable to None (for native Rust/C usage)
impl From<usize> for CoreRenderImageCallback
Allow creating CoreRenderImageCallback from a raw function pointer (as usize) Sets callable to None (for native Rust/C usage)
Source§fn from(cb: CoreRenderImageCallbackType) -> Self
fn from(cb: CoreRenderImageCallbackType) -> Self
Converts to this type from the input type.
Source§impl Hash for CoreRenderImageCallback
impl Hash for CoreRenderImageCallback
Source§impl Ord for CoreRenderImageCallback
impl Ord for CoreRenderImageCallback
Source§fn cmp(&self, other: &CoreRenderImageCallback) -> Ordering
fn cmp(&self, other: &CoreRenderImageCallback) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CoreRenderImageCallback
impl PartialEq for CoreRenderImageCallback
Source§impl PartialOrd for CoreRenderImageCallback
impl PartialOrd for CoreRenderImageCallback
impl Eq for CoreRenderImageCallback
impl StructuralPartialEq for CoreRenderImageCallback
Auto Trait Implementations§
impl Freeze for CoreRenderImageCallback
impl RefUnwindSafe for CoreRenderImageCallback
impl Send for CoreRenderImageCallback
impl Sync for CoreRenderImageCallback
impl Unpin for CoreRenderImageCallback
impl UnwindSafe for CoreRenderImageCallback
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more