Struct rect_packer::Config [] [src]

pub struct Config {
    pub width: i32,
    pub height: i32,
    pub border_padding: i32,
    pub rectangle_padding: i32,
}

Describes size and padding requirements of rectangle packing.

Fields

Width of the encompassing rectangle.

Height of the encompassing rectangle.

Minimum spacing between border and rectangles.

Minimum spacing between rectangles.

Trait Implementations

impl Copy for Config
[src]

impl Clone for Config
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Config
[src]

Formats the value using the given formatter.

impl Eq for Config
[src]

impl PartialEq for Config
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Config
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more