pub struct StickyPositionConstraintBuilder { /* private fields */ }
Available on crate features
experimental
and LayerTree
and DOM
only.Implementations§
Source§impl StickyPositionConstraintBuilder
impl StickyPositionConstraintBuilder
Sourcepub fn sticky_box_rect(&mut self, v: Rect) -> &mut Self
pub fn sticky_box_rect(&mut self, v: Rect) -> &mut Self
Layout rectangle of the sticky element before being shifted
Sourcepub fn containing_block_rect(&mut self, v: Rect) -> &mut Self
pub fn containing_block_rect(&mut self, v: Rect) -> &mut Self
Layout rectangle of the containing block of the sticky element
Sourcepub fn nearest_layer_shifting_sticky_box(&mut self, v: LayerId) -> &mut Self
pub fn nearest_layer_shifting_sticky_box(&mut self, v: LayerId) -> &mut Self
The nearest sticky layer that shifts the sticky box
Sourcepub fn nearest_layer_shifting_containing_block(
&mut self,
v: LayerId,
) -> &mut Self
pub fn nearest_layer_shifting_containing_block( &mut self, v: LayerId, ) -> &mut Self
The nearest sticky layer that shifts the containing block
pub fn build(&mut self) -> Result<StickyPositionConstraint, &'static str>
Trait Implementations§
Source§impl Clone for StickyPositionConstraintBuilder
impl Clone for StickyPositionConstraintBuilder
Source§fn clone(&self) -> StickyPositionConstraintBuilder
fn clone(&self) -> StickyPositionConstraintBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for StickyPositionConstraintBuilder
impl RefUnwindSafe for StickyPositionConstraintBuilder
impl Send for StickyPositionConstraintBuilder
impl Sync for StickyPositionConstraintBuilder
impl Unpin for StickyPositionConstraintBuilder
impl UnwindSafe for StickyPositionConstraintBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more