Module fiberplane_models::formatting
source · Structs§
- A struct that represents all the formatting that is active at any given character offset.
- An annotation at a specific offset in the text. Offsets are always calculated by Unicode scalar values rather than byte indices.
- Annotation for the mention of a user.
- Struct that contains text with associated formatting.
Enums§
- A rich-text annotation.
Functions§
- Finds the correct insertion index for an annotation at the given offset inside of a range.
- Finds the first index at which an annotation can be found for an offset higher than the given offset.
- Finds the first index at which an annotation can be found for the given offset, or the next existing offset in case the exact offset cannot be found.
- Translates all offsets in a range of formatting annotations with the given delta.
Type Aliases§
- Formatting to be applied in order to turn plain-text into rich-text.