pub struct Viewport { /* private fields */ }Expand description
The axes one child view projects into its finite layout allocation.
Construction requires at least one projected axis. An absent axis follows the child’s ordinary layout rules.
Implementations§
Source§impl Viewport
impl Viewport
pub const fn horizontal(projection: Projection) -> Self
pub const fn vertical(projection: Projection) -> Self
pub const fn both(horizontal: Projection, vertical: Projection) -> Self
pub const fn horizontal_projection(&self) -> Option<Projection>
pub const fn vertical_projection(&self) -> Option<Projection>
Trait Implementations§
impl Copy for Viewport
impl Eq for Viewport
impl StructuralPartialEq for Viewport
Auto Trait Implementations§
impl Freeze for Viewport
impl RefUnwindSafe for Viewport
impl Send for Viewport
impl Sync for Viewport
impl Unpin for Viewport
impl UnsafeUnpin for Viewport
impl UnwindSafe for Viewport
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