pub trait Inspectable {
    fn inspect_ui_outside(&mut self, name: &str, ui: &mut Ui) { ... }
    fn inspect_ui(&mut self, _ui: &mut Ui) { ... }
}

Provided Methods

Inspects this value given its name. This usually is just a wrapper over inspect_ui with a label in front of it.

This function exists here to allow overriding the default behavior, which is what happens to objects that implement TreeNode and derive Inspectable. Since we don’t want nodes to be visible in the inspector, we can manually implement this function and remove all default behavior, thus effectively hiding the object from the inspector while still allowing to inspect its contents via inspect_ui.

Implementations on Foreign Types

Implementors