Struct nannou::geom::rect::Padding[][src]

pub struct Padding<S = Default> {
    pub x: Range<S>,
    pub y: Range<S>,
}

The distance between the inner edge of a border and the outer edge of the inner content.

Fields

Padding on the start and end of the x axis.

Padding on the start and end of the y axis.

Methods

impl<S> Padding<S> where
    S: BaseNum
[src]

No padding.

Trait Implementations

impl<S: Copy> Copy for Padding<S>
[src]

impl<S: Clone> Clone for Padding<S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: Debug> Debug for Padding<S>
[src]

Formats the value using the given formatter. Read more

impl<S: PartialEq> PartialEq for Padding<S>
[src]

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

This method tests for !=.

Auto Trait Implementations

impl<S> Send for Padding<S> where
    S: Send

impl<S> Sync for Padding<S> where
    S: Sync