Struct kas::layout::CompleteAlignment [−][src]
pub struct CompleteAlignment { /* fields omitted */ }
Expand description
Provides alignment information on both axes along with ideal size
Note that the ideal
size detail is only used for non-stretch alignment.
Implementations
Construct a rect of size ideal
within rect
using the given alignment
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CompleteAlignment
impl Send for CompleteAlignment
impl Sync for CompleteAlignment
impl Unpin for CompleteAlignment
impl UnwindSafe for CompleteAlignment
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn cast_trunc(self) -> T
pub fn cast_trunc(self) -> T
Cast to integer, truncating Read more
pub fn cast_nearest(self) -> T
pub fn cast_nearest(self) -> T
Cast to the nearest integer Read more
pub fn cast_floor(self) -> T
pub fn cast_floor(self) -> T
Cast the floor to an integer Read more
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
pub fn try_cast_ceil(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more