pub enum ToastPosition {
TopLeft,
TopCenter,
TopRight,
BottomLeft,
BottomCenter,
BottomRight,
}Expand description
Position where the toast should be displayed.
Variants§
TopLeft
Top-left corner.
TopCenter
Top center.
TopRight
Top-right corner.
BottomLeft
Bottom-left corner.
BottomCenter
Bottom center.
BottomRight
Bottom-right corner.
Implementations§
Trait Implementations§
Source§impl Clone for ToastPosition
impl Clone for ToastPosition
Source§fn clone(&self) -> ToastPosition
fn clone(&self) -> ToastPosition
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 ToastPosition
Source§impl Debug for ToastPosition
impl Debug for ToastPosition
Source§impl Default for ToastPosition
impl Default for ToastPosition
Source§fn default() -> ToastPosition
fn default() -> ToastPosition
Returns the “default value” for a type. Read more
impl Eq for ToastPosition
Source§impl PartialEq for ToastPosition
impl PartialEq for ToastPosition
Source§fn eq(&self, other: &ToastPosition) -> bool
fn eq(&self, other: &ToastPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ToastPosition
Auto Trait Implementations§
impl Freeze for ToastPosition
impl RefUnwindSafe for ToastPosition
impl Send for ToastPosition
impl Sync for ToastPosition
impl Unpin for ToastPosition
impl UnsafeUnpin for ToastPosition
impl UnwindSafe for ToastPosition
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.