Fix documentation of markdown and rich_text

This commit is contained in:
Héctor Ramón Jiménez 2025-02-04 19:07:24 +01:00
parent 5655998761
commit 24cf355e96
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
6 changed files with 87 additions and 51 deletions

View file

@ -84,3 +84,12 @@ pub use vector::Vector;
pub use widget::Widget;
pub use smol_str::SmolStr;
/// A function that can _never_ be called.
///
/// This is useful to turn generic types into anything
/// you want by coercing them into a type with no possible
/// values.
pub fn never<T>(never: std::convert::Infallible) -> T {
match never {}
}