Expand description
Inner padding dimensions that should be applied on top of a Rect
or other
object that defines dimensions.
TODO(JP): these values can be negative, which can be quite confusing, but we seem to actually honor that in the layout boxes code. Might be good to look into that and see if we should forbid that or not (we seem to never actually do that yet).
Fields
l: f32
t: f32
r: f32
b: f32
Implementations
impl Padding
impl Padding
TODO(JP): Replace these with Padding::default() when https://github.com/rust-lang/rust/issues/67792 gets done
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Padding
impl UnwindSafe for Padding
Blanket Implementations
Mutably borrows from an owned value. Read more