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]

[src]

Creates a new Vec4.

[src]

Returns left + right.

[src]

Returns top + bottom.

[src]

Returns (left+right, top+bottom).

[src]

Returns (left, top).

[src]

Returns (right, bottom).

Trait Implementations

impl Clone for Vec4
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Vec4
[src]

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Div<usize> for Vec4
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Mul<usize> for Vec4
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

Auto Trait Implementations

impl Send for Vec4

impl Sync for Vec4