-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change brings the enum / contents pattern to the Text object, breaking its monolithic declaration into multiple mods and structs. This comes with a host of ergonomics improvements, like lots of handy conversions - for example if there is an fn of type `fn foo(text: impl Into<text::Plain>) -> Foo`, you can invoke it with a `text::Plain`, a string literal, or a `String`. BREAKING!: `text` is now an enum of single-element tuples. Those tuples point to separate structure definitions for the different kinds of Text objects. BREAKING!: `text` is now publicly used at the crate root, breaking glob imports like `slack_blocks::*` if there's a local code element named `text`
- Loading branch information
1 parent
c6256ba
commit 3573f44
Showing
14 changed files
with
382 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.