Struct cursive::vec::Vec4 [] [src]

pub struct Vec4 {
    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 Vec4
[src]

Creates a new Vec4.

Returns left + right.

Returns top + bottom.

Returns (left+right, top+bottom).

Returns (left, top).

Returns (right, bottom).

Trait Implementations

impl Clone for Vec4
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Vec4
[src]

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

The resulting type after applying the + operator

The method for the + operator

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

The resulting type after applying the - operator

The method for the - operator

impl Div<usize> for Vec4
[src]

The resulting type after applying the / operator

The method for the / operator

impl Mul<usize> for Vec4
[src]

The resulting type after applying the * operator

The method for the * operator