Struct style::logical_geometry::LogicalPoint [] [src]

pub struct LogicalPoint<T> {
    pub i: T,
    pub b: T,
    // some fields omitted
}

A 2D point in flow-relative dimensions

Fields

inline-axis coordinate

block-axis coordinate

Methods

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

[src]

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

[src]

impl<T: Copy + Sub<T, Output = T>> LogicalPoint<T>
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

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

[src]

This doesn’t really makes sense, but happens when dealing with multiple origins.

Trait Implementations

impl<T: Clone> Clone for LogicalPoint<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 LogicalPoint<T>
[src]

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

impl<T: PartialEq> PartialEq for LogicalPoint<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 LogicalPoint<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: Copy + Add<T, Output = T>> Add<LogicalSize<T>> for LogicalPoint<T>
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<T: Copy + Sub<T, Output = T>> Sub<LogicalSize<T>> for LogicalPoint<T>
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.