Skip to main content

TextBoxImpl

Trait TextBoxImpl 

Source
pub trait TextBoxImpl: TemplatedControlImpl + Upcast<TextBox> {
    // Provided method
    fn coerce_text(this: &Self, value: Option<String>) -> Option<String> { ... }
}
Expand description

The overridable members introduced by the class.

Provided Methods§

Source

fn coerce_text(this: &Self, value: Option<String>) -> Option<String>

Coerces the current text.

This method also manages the internal undo/redo state whenever the text changes: if overridden, ensure that the base is called or undo/redo won’t work correctly.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§