Skip to main content

Representing

Trait Representing 

Source
pub trait Representing:
    Send
    + Sync
    + 'static {
    // Required methods
    fn make(&self) -> *mut c_void;
    fn update(&self, view: *mut c_void);
}
Expand description

How an AppKit view is made and kept up to date.

Required Methods§

Source

fn make(&self) -> *mut c_void

Make the view. Called once.

Source

fn update(&self, view: *mut c_void)

Bring the view in line with the current state. Called on every update.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§