pub enum Placement {
Show 14 variants
TopStart,
Top,
TopEnd,
BottomStart,
Bottom,
BottomEnd,
RightStart,
Right,
RightEnd,
LeftStart,
Left,
LeftEnd,
Over,
Cursor,
}
Expand description
Describes the placement of a view relative to its parent element.
Variants§
TopStart
The view should be placed above its parent with its left edge aligned with the left edge of its parent.
Top
The view should be placed above its parent with its center aligned with the center of its parent.
TopEnd
The view should be placed above its parent with its right edge aligned with the right edge of its parent.
BottomStart
The view should be placed below its parent with its left edge aligned with the left edge of its parent.
Bottom
The view should be placed below its parent with its center aligned with the center of its parent.
BottomEnd
The view should be placed below its parent with its right edge aligned with the right edge of its parent.
RightStart
The view should be placed to the right of its parent with its top edge aligned with the top edge of its parent.
Right
The view should be placed to the right of its parent with its center aligned with the center of its parent.
RightEnd
The view should be placed to the right of its parent with its bottom edge aligned with the bottom edge of its parent.
LeftStart
The view should be placed to the left of its parent with its top edge aligned with the top edge of its parent.
Left
The view should be placed to the left of its parent with its center aligned with the center of its parent.
LeftEnd
The view should be placed to the left of its parent with its bottom edge aligned with the bottom edge of its parent.
Over
The view should be placed over its parent.
Cursor
The view should follow the cursor.
Trait Implementations§
impl Copy for Placement
impl Eq for Placement
impl StructuralPartialEq for Placement
Auto Trait Implementations§
impl Freeze for Placement
impl RefUnwindSafe for Placement
impl Send for Placement
impl Sync for Placement
impl Unpin for Placement
impl UnwindSafe for Placement
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.