pub trait SafeAlignmentUtilities {
// Required methods
fn safe_top(self, value: SpacingValue) -> Self;
fn safe_bottom(self, value: SpacingValue) -> Self;
fn safe_left(self, value: SpacingValue) -> Self;
fn safe_right(self, value: SpacingValue) -> Self;
}
Expand description
Trait for adding safe alignment utilities to a class builder
Required Methods§
Sourcefn safe_top(self, value: SpacingValue) -> Self
fn safe_top(self, value: SpacingValue) -> Self
Add safe top alignment with spacing value
Sourcefn safe_bottom(self, value: SpacingValue) -> Self
fn safe_bottom(self, value: SpacingValue) -> Self
Add safe bottom alignment with spacing value
Sourcefn safe_left(self, value: SpacingValue) -> Self
fn safe_left(self, value: SpacingValue) -> Self
Add safe left alignment with spacing value
Sourcefn safe_right(self, value: SpacingValue) -> Self
fn safe_right(self, value: SpacingValue) -> Self
Add safe right alignment with spacing value
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.