Struct ultron::editor::Editor [−][src]
pub struct Editor<XMSG> { /* fields omitted */ }
Implementations
Attach a callback to this editor where it is invoked when the content is changed.
Note:The content is extracted into string and used as a parameter to the function. This may be a costly operation when the editor has lot of text on it.
Attach an callback to this editor where it is invoked when the content is changed. The callback function just notifies the parent component that uses the Editor component. It will be up to the parent component to extract the content of the editor manually.
This is intended to be used in a debounced or throttled functionality where the component decides when to do an expensive operation based on time and recency.
convert screen coordinate to cursor position
convert current cursor position to client coordinate relative to the editor div
Trait Implementations
Update the model of this component and return follow up and/or effects that will be executed on the next update loop Read more
Auto Trait Implementations
impl<XMSG> !RefUnwindSafe for Editor<XMSG>
impl<XMSG> !UnwindSafe for Editor<XMSG>
Blanket Implementations
Mutably borrows from an owned value. Read more
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.