pub enum BannerLocation {
TopStart,
TopEnd,
BottomStart,
BottomEnd,
}Expand description
Where to show a Banner.
The start and end locations are relative to the ambient Directionality
(which can be overridden by Banner::layout_direction).
Variants§
TopStart
Show the banner in the top-right corner when the ambient Directionality
(or Banner::layout_direction) is TextDirection::Rtl and in the
top-left corner when the ambient Directionality is
TextDirection::Ltr.
TopEnd
Show the banner in the top-left corner when the ambient Directionality
(or Banner::layout_direction) is TextDirection::Rtl and in the
top-right corner when the ambient Directionality is
TextDirection::Ltr.
BottomStart
Show the banner in the bottom-right corner when the ambient
Directionality (or Banner::layout_direction) is
TextDirection::Rtl and in the bottom-left corner when the ambient
Directionality is TextDirection::Ltr.
BottomEnd
Show the banner in the bottom-left corner when the ambient
Directionality (or Banner::layout_direction) is
TextDirection::Rtl and in the bottom-right corner when the ambient
Directionality is TextDirection::Ltr.
Trait Implementations§
Source§impl Clone for BannerLocation
impl Clone for BannerLocation
impl Copy for BannerLocation
Source§impl Debug for BannerLocation
impl Debug for BannerLocation
impl Eq for BannerLocation
Source§impl Hash for BannerLocation
impl Hash for BannerLocation
Source§impl PartialEq for BannerLocation
impl PartialEq for BannerLocation
impl StructuralPartialEq for BannerLocation
Auto Trait Implementations§
impl Forget for BannerLocation
impl Freeze for BannerLocation
impl Move for BannerLocation
impl RefUnwindSafe for BannerLocation
impl Send for BannerLocation
impl Sync for BannerLocation
impl Unpin for BannerLocation
impl UnsafeUnpin for BannerLocation
impl UnwindSafe for BannerLocation
Blanket Implementations§
Source§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
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
key and return true if they are equal.