pub struct Decorated<V, D> {
pub view: V,
pub decorator: D,
}
Expand description
Represents a particular view V
, decorated by a decorator D
.
Update the cells in grid
to describe how a type should be rendered.
Update the cells in grid
to describe how a type should be rendered.
Returns the size in cells of the rectangle containing a ui element.
This allows for the implementation of decorator ui components that
render a border around some inner element.
Read more
Returns the size in cells of the rectangle containing a ui element.
This allows for the implementation of decorator ui components that
render a border around some inner element.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.