Struct style::logical_geometry::LogicalMargin [] [src]

pub struct LogicalMargin<T> {
    pub block_start: T,
    pub inline_end: T,
    pub block_end: T,
    pub inline_start: T,
    // some fields omitted
}

A "margin" in flow-relative dimensions Represents the four sides of the margins, borders, or padding of a CSS box, or a combination of those. A positive "margin" can be added to a rectangle to obtain a bigger rectangle.

Fields

Methods

impl<T: Zero> LogicalMargin<T>
[src]

[src]

impl<T: Copy> LogicalMargin<T>
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

impl<T: PartialEq + Zero> LogicalMargin<T>
[src]

[src]

impl<T: Copy + Add<T, Output = T>> LogicalMargin<T>
[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<T: Clone> Clone for LogicalMargin<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for LogicalMargin<T>
[src]

impl<T: Eq> Eq for LogicalMargin<T>
[src]

impl<T: PartialEq> PartialEq for LogicalMargin<T>
[src]

[src]

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

[src]

This method tests for !=.

impl<T: Debug> Debug for LogicalMargin<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: Add<T, Output = T>> Add for LogicalMargin<T>
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<T: Sub<T, Output = T>> Sub for LogicalMargin<T>
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<T: Copy + Add<T, Output = T> + Sub<T, Output = T>> Add<LogicalMargin<T>> for LogicalRect<T>
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<T: Copy + Add<T, Output = T> + Sub<T, Output = T>> Sub<LogicalMargin<T>> for LogicalRect<T>
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.