pub struct ConstraintGuideBuilder { /* private fields */ }Expand description
A builder-pattern type to construct ConstraintGuide objects.
Implementations§
Source§impl ConstraintGuideBuilder
impl ConstraintGuideBuilder
pub fn max_height(self, max_height: i32) -> Self
pub fn max_width(self, max_width: i32) -> Self
pub fn min_height(self, min_height: i32) -> Self
pub fn min_width(self, min_width: i32) -> Self
pub fn name(self, name: impl Into<GString>) -> Self
pub fn nat_height(self, nat_height: i32) -> Self
pub fn nat_width(self, nat_width: i32) -> Self
pub fn strength(self, strength: ConstraintStrength) -> Self
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