pub enum ProjectionBoundary {
Preserve,
Clamp,
}Expand description
How a requested projection origin behaves at a content boundary.
Variants§
Preserve
Uses the requested origin exactly, including negative origins and origins beyond the content extent.
Clamp
Constrains the origin so content fills the viewport when it can.
Trait Implementations§
Source§impl Clone for ProjectionBoundary
impl Clone for ProjectionBoundary
Source§fn clone(&self) -> ProjectionBoundary
fn clone(&self) -> ProjectionBoundary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProjectionBoundary
impl Debug for ProjectionBoundary
Source§impl PartialEq for ProjectionBoundary
impl PartialEq for ProjectionBoundary
Source§fn eq(&self, other: &ProjectionBoundary) -> bool
fn eq(&self, other: &ProjectionBoundary) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ProjectionBoundary
impl Eq for ProjectionBoundary
impl StructuralPartialEq for ProjectionBoundary
Auto Trait Implementations§
impl Freeze for ProjectionBoundary
impl RefUnwindSafe for ProjectionBoundary
impl Send for ProjectionBoundary
impl Sync for ProjectionBoundary
impl Unpin for ProjectionBoundary
impl UnsafeUnpin for ProjectionBoundary
impl UnwindSafe for ProjectionBoundary
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