diff --git a/src/lib.rs b/src/lib.rs index 8cd04b2..5981694 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,7 +24,7 @@ pub mod prelude { pub use crate::event::window::Event as WindowEvent; pub use crate::platform::Platform; pub use crate::widget::Column; - pub use crate::widget::IntoPadded; + pub use crate::widget::Padded; pub use crate::widget::Label; pub use crate::widget::Row; pub use crate::widget::Padding; diff --git a/src/widget/padding.rs b/src/widget/padding.rs index 168d788..db3a1fb 100755 --- a/src/widget/padding.rs +++ b/src/widget/padding.rs @@ -52,7 +52,7 @@ impl Padding { } } -pub trait IntoPadded { +pub trait Padded { fn padding(self, left: u32, right: u32, top: u32, bottom: u32) -> Padding; fn padding_x(self, left: u32, right: u32) -> Padding; fn padding_y(self, top: u32, bottom: u32) -> Padding; @@ -63,7 +63,7 @@ pub trait IntoPadded { fn padding_all(self, padding: u32) -> Padding; } -impl IntoPadded for W { +impl Padded for W { fn padding(self, left: u32, right: u32, top: u32, bottom: u32) -> Padding { Padding::new(left, right, top, bottom, self) }