pub enum LayerPlacement {
Center,
Left,
Right,
Top,
Bottom,
Anchor(AnchorPlacement),
ContextPoint(ContextPoint),
Viewport(ViewportPlacement),
}Variants§
Center
Left
Right
Top
Bottom
Anchor(AnchorPlacement)
ContextPoint(ContextPoint)
A context request in viewport CSS pixels, belonging to Layer::anchor.
Viewport(ViewportPlacement)
Implementations§
Trait Implementations§
Source§impl Clone for LayerPlacement
impl Clone for LayerPlacement
Source§fn clone(&self) -> LayerPlacement
fn clone(&self) -> LayerPlacement
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 moreimpl Copy for LayerPlacement
Source§impl Debug for LayerPlacement
impl Debug for LayerPlacement
Source§impl Default for LayerPlacement
impl Default for LayerPlacement
Source§fn default() -> LayerPlacement
fn default() -> LayerPlacement
Returns the “default value” for a type. Read more
Source§impl PartialEq for LayerPlacement
impl PartialEq for LayerPlacement
impl StructuralPartialEq for LayerPlacement
Auto Trait Implementations§
impl Freeze for LayerPlacement
impl RefUnwindSafe for LayerPlacement
impl Send for LayerPlacement
impl Sync for LayerPlacement
impl Unpin for LayerPlacement
impl UnsafeUnpin for LayerPlacement
impl UnwindSafe for LayerPlacement
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