Skip to main content

assert_editor_lifecycle

Function assert_editor_lifecycle 

Source
pub fn assert_editor_lifecycle<P: PluginExport>()
Expand description

Assert editor can be created multiple times without issues.

Catches lifecycle bugs where create/drop leaves state dirty.

ยงPanics

Panics if editor() returns None on first or second creation, the first editor reports a zero dimension, or the size differs between consecutive editor() calls.