pub struct StickyPositionConstraint { /* private fields */ }
Available on crate features
experimental
and LayerTree
and DOM
only.Expand description
Sticky position constraints.
Implementations§
Source§impl StickyPositionConstraint
impl StickyPositionConstraint
pub fn builder() -> StickyPositionConstraintBuilder
Sourcepub fn sticky_box_rect(&self) -> &Rect
pub fn sticky_box_rect(&self) -> &Rect
Layout rectangle of the sticky element before being shifted
Sourcepub fn containing_block_rect(&self) -> &Rect
pub fn containing_block_rect(&self) -> &Rect
Layout rectangle of the containing block of the sticky element
Sourcepub fn nearest_layer_shifting_sticky_box(&self) -> Option<&LayerId>
pub fn nearest_layer_shifting_sticky_box(&self) -> Option<&LayerId>
The nearest sticky layer that shifts the sticky box
Sourcepub fn nearest_layer_shifting_containing_block(&self) -> Option<&LayerId>
pub fn nearest_layer_shifting_containing_block(&self) -> Option<&LayerId>
The nearest sticky layer that shifts the containing block
Trait Implementations§
Source§impl Clone for StickyPositionConstraint
impl Clone for StickyPositionConstraint
Source§fn clone(&self) -> StickyPositionConstraint
fn clone(&self) -> StickyPositionConstraint
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 moreSource§impl Debug for StickyPositionConstraint
impl Debug for StickyPositionConstraint
Source§impl<'de> Deserialize<'de> for StickyPositionConstraint
impl<'de> Deserialize<'de> for StickyPositionConstraint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StickyPositionConstraint
impl RefUnwindSafe for StickyPositionConstraint
impl Send for StickyPositionConstraint
impl Sync for StickyPositionConstraint
impl Unpin for StickyPositionConstraint
impl UnwindSafe for StickyPositionConstraint
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