Enum cursive::view::DimensionRequest
[−]
[src]
pub enum DimensionRequest { Fixed(usize), AtMost(usize), Unknown, }
Describe constraints on a view layout in one dimension.
Variants
Fixed(usize)
The view must use exactly the attached size.
AtMost(usize)
The view is free to choose its size if it stays under the limit.
Unknown
No clear restriction apply.
Methods
impl DimensionRequest
[src]
fn reduced(self, offset: usize) -> Self
Returns a new request, reduced from the original by the given offset.
Trait Implementations
impl Copy for DimensionRequest
[src]
impl Clone for DimensionRequest
[src]
fn clone(&self) -> DimensionRequest
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for DimensionRequest
[src]
fn eq(&self, __arg_0: &DimensionRequest) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DimensionRequest) -> bool
This method tests for !=
.