pub struct ConstraintGuideBuilder { /* private fields */ }Expand description
A builder-pattern type to construct ConstraintGuide objects.
Implementations§
Source§impl ConstraintGuideBuilder
impl ConstraintGuideBuilder
Sourcepub fn max_height(self, max_height: i32) -> Self
pub fn max_height(self, max_height: i32) -> Self
The maximum height of the guide.
Sourcepub fn min_height(self, min_height: i32) -> Self
pub fn min_height(self, min_height: i32) -> Self
The minimum height of the guide.
Sourcepub fn name(self, name: impl Into<GString>) -> Self
pub fn name(self, name: impl Into<GString>) -> Self
A name that identifies the ConstraintGuide, for debugging.
Sourcepub fn nat_height(self, nat_height: i32) -> Self
pub fn nat_height(self, nat_height: i32) -> Self
The preferred, or natural, height of the guide.
Sourcepub fn strength(self, strength: ConstraintStrength) -> Self
pub fn strength(self, strength: ConstraintStrength) -> Self
The ConstraintStrength to be used for the constraint on
the natural size of the guide.
Sourcepub fn build(self) -> ConstraintGuide
pub fn build(self) -> ConstraintGuide
Build the ConstraintGuide.
Auto Trait Implementations§
impl Freeze for ConstraintGuideBuilder
impl RefUnwindSafe for ConstraintGuideBuilder
impl !Send for ConstraintGuideBuilder
impl !Sync for ConstraintGuideBuilder
impl Unpin for ConstraintGuideBuilder
impl UnwindSafe for ConstraintGuideBuilder
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