Fix documentation of markdown and rich_text
This commit is contained in:
parent
5655998761
commit
24cf355e96
6 changed files with 87 additions and 51 deletions
|
|
@ -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 {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue