Struct cdp::layer_tree::StickyPositionConstraint [] [src]

pub struct StickyPositionConstraint<'a> {
    pub sticky_box_rect: Rect,
    pub containing_block_rect: Rect,
    pub nearest_layer_shifting_sticky_box: Option<LayerId<'a>>,
    pub nearest_layer_shifting_containing_block: Option<LayerId<'a>>,
}

[Experimental] Sticky position constraints.

Fields

Layout rectangle of the sticky element before being shifted

Layout rectangle of the containing block of the sticky element

The nearest sticky layer that shifts the sticky box

The nearest sticky layer that shifts the containing block

Trait Implementations

impl<'a> Clone for StickyPositionConstraint<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for StickyPositionConstraint<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for StickyPositionConstraint<'a>
[src]

[src]

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

[src]

This method tests for !=.