Struct chrome_remote_interface_model::layer_tree::StickyPositionConstraintBuilder[][src]

pub struct StickyPositionConstraintBuilder { /* fields omitted */ }
This is supported on crate features experimental and LayerTree and DOM only.

Implementations

impl StickyPositionConstraintBuilder[src]

pub fn sticky_box_rect(&mut self, v: Rect) -> &mut Self[src]

Layout rectangle of the sticky element before being shifted

pub fn containing_block_rect(&mut self, v: Rect) -> &mut Self[src]

Layout rectangle of the containing block of the sticky element

pub fn nearest_layer_shifting_sticky_box(&mut self, v: LayerId) -> &mut Self[src]

The nearest sticky layer that shifts the sticky box

pub fn nearest_layer_shifting_containing_block(
    &mut self,
    v: LayerId
) -> &mut Self
[src]

The nearest sticky layer that shifts the containing block

pub fn build(&mut self) -> Result<StickyPositionConstraint, &'static str>[src]

Trait Implementations

impl Clone for StickyPositionConstraintBuilder[src]

impl Debug for StickyPositionConstraintBuilder[src]

impl Default for StickyPositionConstraintBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.