Expand description
Provides DefaultEditorRules for editor behaviors with custom override function. See NewlineRule and WordDivideRule, the traits that compose editor behaviors.
Structs§
- Provides default editor behavior and provides custom override function.
- Struct with default newline behavior
- Struct with default word divide behavior
Traits§
- Trait that implements all editor rule behaviors, a mechanism to allow modification of the library’s behavior at runtime.
- When the client inputs the newline character, ‘\n’, the Editor can decide to not evalute the newline if the provided implementation of this trait returns false. Default prevents evaluate if the last non whitespace character is a backslash.
- When the Editor is trying to place the term cursor it needs to know how to divide the words to determine its [CursorPosition] state.
Functions§
- Default WordDivideRule implementation.
- Default NewlineRule implementation.