pub struct StackPos {
pub top: Option<f32>,
pub left: Option<f32>,
pub bottom: Option<f32>,
pub right: Option<f32>,
pub dx: f32,
pub dy: f32,
pub z: i32,
}Fields§
§top: Option<f32>§left: Option<f32>§bottom: Option<f32>§right: Option<f32>§dx: f32§dy: f32§z: i32Implementations§
Source§impl StackPos
impl StackPos
pub const fn top() -> Self
pub const fn bottom() -> Self
pub const fn left() -> Self
pub const fn right() -> Self
pub const fn top_left() -> Self
pub const fn top_right() -> Self
pub const fn bottom_left() -> Self
pub const fn bottom_right() -> Self
pub const fn fill() -> Self
pub const fn offset(self, dx: f32, dy: f32) -> Self
pub const fn z(self, z: i32) -> Self
pub const fn is_pinned(self) -> bool
Trait Implementations§
impl Copy for StackPos
impl StructuralPartialEq for StackPos
Auto Trait Implementations§
impl Freeze for StackPos
impl RefUnwindSafe for StackPos
impl Send for StackPos
impl Sync for StackPos
impl Unpin for StackPos
impl UnsafeUnpin for StackPos
impl UnwindSafe for StackPos
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