pub struct PaddingSpec {
pub top: usize,
pub right: usize,
pub bottom: usize,
pub left: usize,
}Expand description
Padding specification.
Fields§
§top: usizeTop padding (lines)
right: usizeRight padding (spaces)
bottom: usizeBottom padding (lines)
left: usizeLeft padding (spaces)
Implementations§
Trait Implementations§
Source§impl Clone for PaddingSpec
impl Clone for PaddingSpec
Source§fn clone(&self) -> PaddingSpec
fn clone(&self) -> PaddingSpec
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 PaddingSpec
Source§impl Debug for PaddingSpec
impl Debug for PaddingSpec
impl Eq for PaddingSpec
Source§impl PartialEq for PaddingSpec
impl PartialEq for PaddingSpec
Source§fn eq(&self, other: &PaddingSpec) -> bool
fn eq(&self, other: &PaddingSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PaddingSpec
Auto Trait Implementations§
impl Freeze for PaddingSpec
impl RefUnwindSafe for PaddingSpec
impl Send for PaddingSpec
impl Sync for PaddingSpec
impl Unpin for PaddingSpec
impl UnsafeUnpin for PaddingSpec
impl UnwindSafe for PaddingSpec
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