pub struct Padding {
pub top: f32,
pub right: f32,
pub bottom: f32,
pub left: f32,
}Expand description
Re-export EdgeInsets as Padding for Zentype compatibility Spacing on all four sides.
Fields§
§top: f32§right: f32§bottom: f32§left: f32Implementations§
Source§impl EdgeInsets
impl EdgeInsets
pub const ZERO: EdgeInsets
pub fn all(v: f32) -> EdgeInsets
pub fn symmetric(vertical: f32, horizontal: f32) -> EdgeInsets
pub fn horizontal(&self) -> f32
pub fn vertical(&self) -> f32
Trait Implementations§
Source§impl Clone for EdgeInsets
impl Clone for EdgeInsets
Source§fn clone(&self) -> EdgeInsets
fn clone(&self) -> EdgeInsets
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EdgeInsets
Source§impl Debug for EdgeInsets
impl Debug for EdgeInsets
Source§impl Default for EdgeInsets
impl Default for EdgeInsets
Source§fn default() -> EdgeInsets
fn default() -> EdgeInsets
Returns the “default value” for a type. Read more
Source§impl From<f32> for EdgeInsets
impl From<f32> for EdgeInsets
Source§fn from(v: f32) -> EdgeInsets
fn from(v: f32) -> EdgeInsets
Converts to this type from the input type.
Source§impl From<f64> for EdgeInsets
impl From<f64> for EdgeInsets
Source§fn from(v: f64) -> EdgeInsets
fn from(v: f64) -> EdgeInsets
Converts to this type from the input type.
Source§impl From<i32> for EdgeInsets
impl From<i32> for EdgeInsets
Source§fn from(v: i32) -> EdgeInsets
fn from(v: i32) -> EdgeInsets
Converts to this type from the input type.
Source§impl PartialEq for EdgeInsets
impl PartialEq for EdgeInsets
impl StructuralPartialEq for EdgeInsets
Auto Trait Implementations§
impl Freeze for EdgeInsets
impl RefUnwindSafe for EdgeInsets
impl Send for EdgeInsets
impl Sync for EdgeInsets
impl Unpin for EdgeInsets
impl UnsafeUnpin for EdgeInsets
impl UnwindSafe for EdgeInsets
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