pub struct StickyPositionConstraintBuilder { /* private fields */ }Expand description
Builder for StickyPositionConstraint.
Implementations§
Source§impl StickyPositionConstraintBuilder
impl StickyPositionConstraintBuilder
Sourcepub fn sticky_box_rect<VALUE: Into<Rect>>(&mut self, value: VALUE) -> &mut Self
pub fn sticky_box_rect<VALUE: Into<Rect>>(&mut self, value: VALUE) -> &mut Self
Layout rectangle of the sticky element before being shifted
Sourcepub fn containing_block_rect<VALUE: Into<Rect>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn containing_block_rect<VALUE: Into<Rect>>( &mut self, value: VALUE, ) -> &mut Self
Layout rectangle of the containing block of the sticky element
Sourcepub fn nearest_layer_shifting_sticky_box<VALUE: Into<LayerId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn nearest_layer_shifting_sticky_box<VALUE: Into<LayerId>>( &mut self, value: VALUE, ) -> &mut Self
The nearest sticky layer that shifts the sticky box
Sourcepub fn nearest_layer_shifting_containing_block<VALUE: Into<LayerId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn nearest_layer_shifting_containing_block<VALUE: Into<LayerId>>( &mut self, value: VALUE, ) -> &mut Self
The nearest sticky layer that shifts the containing block
Sourcepub fn build(
&self,
) -> Result<StickyPositionConstraint, StickyPositionConstraintBuilderError>
pub fn build( &self, ) -> Result<StickyPositionConstraint, StickyPositionConstraintBuilderError>
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 UnsafeUnpin 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