mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-02-22 18:59:02 +01:00
refactor: HasSize -> Measured
This commit is contained in:
parent
07a1206c2f
commit
45e122668c
2 changed files with 9 additions and 7 deletions
|
|
@ -204,8 +204,8 @@ impl Direction {
|
|||
}
|
||||
}
|
||||
|
||||
impl<E: Out, T: Has<Measure<E>>> HasSize<E> for T {
|
||||
fn size (&self) -> &Measure<E> {
|
||||
impl<E: Out, T: Has<Measure<E>>> Measured<E> for T {
|
||||
fn measure (&self) -> &Measure<E> {
|
||||
self.get()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue