Struct cursive::view::Margins[][src]

pub struct Margins {
    pub left: usize,
    pub right: usize,
    pub top: usize,
    pub bottom: usize,
}

Four values representing each direction.

Fields

Left margin

Right margin

Top margin

Bottom margin

Methods

impl Margins
[src]

Creates a new Margins.

Returns left + right.

Returns top + bottom.

Returns (left+right, top+bottom).

Returns (left, top).

Returns (right, bottom).

Trait Implementations

impl Clone for Margins
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Margins
[src]

impl From<(usize, usize, usize, usize)> for Margins
[src]

Performs the conversion.

impl From<(i32, i32, i32, i32)> for Margins
[src]

Performs the conversion.

impl From<((i32, i32), (i32, i32))> for Margins
[src]

Performs the conversion.

impl From<((usize, usize), (usize, usize))> for Margins
[src]

Performs the conversion.

impl<T: Into<Margins>> Add<T> for Margins
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<T: Into<Margins>> Sub<T> for Margins
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl Div<usize> for Margins
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl Mul<usize> for Margins
[src]

The resulting type after applying the * operator.

Performs the * operation.

Auto Trait Implementations

impl Send for Margins

impl Sync for Margins