#[repr(C)]pub struct SelectionTweenCallback {
pub cb: SelectionTweenCallbackType,
pub ctx: OptionRefAny,
}Expand description
User-settable selection tween interpolator (see SelectionTweenInfo).
Fields§
§cb: SelectionTweenCallbackType§ctx: OptionRefAnyFor FFI: stores the foreign callable (e.g., PyFunction)
Native Rust code sets this to None
Implementations§
Source§impl SelectionTweenCallback
impl SelectionTweenCallback
pub fn create(cb: SelectionTweenCallbackType) -> Self
Trait Implementations§
Source§impl Clone for SelectionTweenCallback
impl Clone for SelectionTweenCallback
Source§impl Debug for SelectionTweenCallback
impl Debug for SelectionTweenCallback
Source§impl Display for SelectionTweenCallback
impl Display for SelectionTweenCallback
impl Eq for SelectionTweenCallback
Source§impl From<extern "C" fn(RefAny, SelectionTweenInfo) -> LogicalRectVec> for SelectionTweenCallback
Allow creating callback from a raw function pointer
Sets callable to None (for native Rust/C usage)
impl From<extern "C" fn(RefAny, SelectionTweenInfo) -> LogicalRectVec> for SelectionTweenCallback
Allow creating callback from a raw function pointer Sets callable to None (for native Rust/C usage)
Source§fn from(cb: SelectionTweenCallbackType) -> Self
fn from(cb: SelectionTweenCallbackType) -> Self
Converts to this type from the input type.
Source§impl Hash for SelectionTweenCallback
impl Hash for SelectionTweenCallback
Source§impl Ord for SelectionTweenCallback
impl Ord for SelectionTweenCallback
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SelectionTweenCallback
impl PartialEq for SelectionTweenCallback
Source§impl PartialOrd for SelectionTweenCallback
impl PartialOrd for SelectionTweenCallback
Auto Trait Implementations§
impl Freeze for SelectionTweenCallback
impl RefUnwindSafe for SelectionTweenCallback
impl Send for SelectionTweenCallback
impl Sync for SelectionTweenCallback
impl Unpin for SelectionTweenCallback
impl UnsafeUnpin for SelectionTweenCallback
impl UnwindSafe for SelectionTweenCallback
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