pub trait PositioningUtilities {
// Required methods
fn top(self, value: SpacingValue) -> Self;
fn right(self, value: SpacingValue) -> Self;
fn bottom(self, value: SpacingValue) -> Self;
fn left(self, value: SpacingValue) -> Self;
fn inset(self, value: SpacingValue) -> Self;
fn inset_x(self, value: SpacingValue) -> Self;
fn inset_y(self, value: SpacingValue) -> Self;
}
Expand description
Trait for adding positioning utilities to a class builder
Required Methods§
Sourcefn top(self, value: SpacingValue) -> Self
fn top(self, value: SpacingValue) -> Self
Add top positioning
Sourcefn right(self, value: SpacingValue) -> Self
fn right(self, value: SpacingValue) -> Self
Add right positioning
Sourcefn bottom(self, value: SpacingValue) -> Self
fn bottom(self, value: SpacingValue) -> Self
Add bottom positioning
Sourcefn left(self, value: SpacingValue) -> Self
fn left(self, value: SpacingValue) -> Self
Add left positioning
Sourcefn inset(self, value: SpacingValue) -> Self
fn inset(self, value: SpacingValue) -> Self
Add inset positioning (all sides)
Sourcefn inset_x(self, value: SpacingValue) -> Self
fn inset_x(self, value: SpacingValue) -> Self
Add horizontal inset positioning
Sourcefn inset_y(self, value: SpacingValue) -> Self
fn inset_y(self, value: SpacingValue) -> Self
Add vertical inset positioning
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.