mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 03:36:42 +01:00
This commit is contained in:
parent
1c21a85f27
commit
194f2f9874
7 changed files with 16 additions and 29 deletions
|
|
@ -31,13 +31,6 @@ impl<E: Output, T: Content<E>> Content<E> for Option<T> {
|
|||
}
|
||||
}
|
||||
|
||||
/// You can render from a box.
|
||||
impl<E: Output> Content<E> for RenderBox<E> {
|
||||
fn content (&self) -> Option<impl Render<E> + '_> {
|
||||
Some(self.deref())
|
||||
}
|
||||
}
|
||||
|
||||
/// You can render from an opaque pointer.
|
||||
impl<E: Output> Content<E> for &dyn Render<E> where Self: Sized {
|
||||
fn content (&self) -> Option<impl Render<E> + '_> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue