Struct cursive::view::Margins [−][src]
Expand description
Four values representing each direction.
Fields
left: usize
Left margin
right: usize
Right margin
top: usize
Top margin
bottom: usize
Bottom margin
Implementations
Creates a new Margins
object from the Left, Right, Top, Bottom fields.
Creates a new Margins
object from the Left, Top, Right, Bottom fields.
Creates a new Margins
object from the Top, Right, Bottom, Left fields.
Creates a new Margins
object from the Left and Right fields.
Top and Bottom will be 0.
Creates a new Margins
object from the Top and Bottom fields.
Left and Right will be 0.
Returns left + right.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Margins
impl UnwindSafe for Margins
Blanket Implementations
Mutably borrows from an owned value. Read more
Calls the given closure and return the result. Read more
Calls the given closure on self
.