Struct acacia::traits::Positioned [] [src]

pub struct Positioned<O, P> {
    pub object: O,
    pub position: P,
}

A positioned object

This is the most simple generic implementation of Position and serves as a wrapper for types that do not have a notion of a position themselves. It equips these with an additional generic position as an attribute.

Fields

The object wrapped in this type

The position stored along with it

Trait Implementations

impl<O: Clone, P: Clone> Clone for Positioned<O, P>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<O, P> Position for Positioned<O, P> where P: Copy
[src]

The underlying point type

The position