pub struct StickyPositionConstraint<'a> { /* private fields */ }Expand description
Sticky position constraints.
Implementations§
Source§impl<'a> StickyPositionConstraint<'a>
impl<'a> StickyPositionConstraint<'a>
Sourcepub fn builder(
sticky_box_rect: Rect,
containing_block_rect: Rect,
) -> StickyPositionConstraintBuilder<'a>
pub fn builder( sticky_box_rect: Rect, containing_block_rect: Rect, ) -> StickyPositionConstraintBuilder<'a>
Creates a builder for this type with the required parameters:
sticky_box_rect: Layout rectangle of the sticky element before being shiftedcontaining_block_rect: Layout rectangle of the containing block of the sticky element
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<'a>>
pub fn nearest_layer_shifting_sticky_box(&self) -> Option<&LayerId<'a>>
The nearest sticky layer that shifts the sticky box
Sourcepub fn nearest_layer_shifting_containing_block(&self) -> Option<&LayerId<'a>>
pub fn nearest_layer_shifting_containing_block(&self) -> Option<&LayerId<'a>>
The nearest sticky layer that shifts the containing block
Trait Implementations§
Source§impl<'a> Clone for StickyPositionConstraint<'a>
impl<'a> Clone for StickyPositionConstraint<'a>
Source§fn clone(&self) -> StickyPositionConstraint<'a>
fn clone(&self) -> StickyPositionConstraint<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for StickyPositionConstraint<'a>
impl<'a> Debug for StickyPositionConstraint<'a>
Source§impl<'a> Default for StickyPositionConstraint<'a>
impl<'a> Default for StickyPositionConstraint<'a>
Source§fn default() -> StickyPositionConstraint<'a>
fn default() -> StickyPositionConstraint<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for StickyPositionConstraint<'a>
impl<'de, 'a> Deserialize<'de> for StickyPositionConstraint<'a>
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<'a> Freeze for StickyPositionConstraint<'a>
impl<'a> RefUnwindSafe for StickyPositionConstraint<'a>
impl<'a> Send for StickyPositionConstraint<'a>
impl<'a> Sync for StickyPositionConstraint<'a>
impl<'a> Unpin for StickyPositionConstraint<'a>
impl<'a> UnsafeUnpin for StickyPositionConstraint<'a>
impl<'a> UnwindSafe for StickyPositionConstraint<'a>
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