dungen_minion_geometry 0.3.2

Geometry support for dungen_minion.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// External includes.

// Standard includes.

// Internal includes.
use super::Size;

/// Defines a type that has a [`Size`](struct.Size.html), but is not necessarily itself a `Size` (see [`IsSize`](trait.IsSize.html)).
pub trait HasSize {
    /// Returns a reference to the instance's `Size`.
    fn size(&self) -> &Size;

    /// Returns a mutable reference to the instance's `Size`.
    fn size_mut(&mut self) -> &mut Size;
}