pub enum BadgePlacement {
TopLeft,
Top,
TopRight,
Left,
Right,
BottomLeft,
Bottom,
BottomRight,
}
Expand description
Enum which represents the placement of a badge on its parent.
Variants§
TopLeft
The badge should be placed at the top-left of the view.
Top
The badge should be placed at the top of the view.
TopRight
The badge should be placed at the top-right of the view.
Left
The badge should be placed at the left of the view.
Right
The badge should be placed at the right of the view.
BottomLeft
The badge should be placed at the bottom-left of the view.
Bottom
The badge should be placed at the bottom of the view.
BottomRight
The badge should be placed at the bottom-right of the view.
Trait Implementations§
Source§impl Clone for BadgePlacement
impl Clone for BadgePlacement
Source§fn clone(&self) -> BadgePlacement
fn clone(&self) -> BadgePlacement
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Data for BadgePlacement
impl Data for BadgePlacement
Source§fn same(&self, other: &BadgePlacement) -> bool
fn same(&self, other: &BadgePlacement) -> bool
A method which determines whether two pieces of data are the same.
Source§impl Debug for BadgePlacement
impl Debug for BadgePlacement
Source§impl Default for BadgePlacement
impl Default for BadgePlacement
Source§fn default() -> BadgePlacement
fn default() -> BadgePlacement
Returns the “default value” for a type. Read more
Source§impl PartialEq for BadgePlacement
impl PartialEq for BadgePlacement
Source§impl Res<BadgePlacement> for BadgePlacement
impl Res<BadgePlacement> for BadgePlacement
Source§impl ResGet<BadgePlacement> for BadgePlacement
impl ResGet<BadgePlacement> for BadgePlacement
Source§fn get_ref<'a>(
&self,
_: &impl DataContext,
) -> Option<LensValue<'_, BadgePlacement>>
fn get_ref<'a>( &self, _: &impl DataContext, ) -> Option<LensValue<'_, BadgePlacement>>
Returns the value of a lens by reference.
Source§fn get(&self, _: &impl DataContext) -> BadgePlacement
fn get(&self, _: &impl DataContext) -> BadgePlacement
returns the value of a lens by value.
impl Copy for BadgePlacement
impl StructuralPartialEq for BadgePlacement
Auto Trait Implementations§
impl Freeze for BadgePlacement
impl RefUnwindSafe for BadgePlacement
impl Send for BadgePlacement
impl Sync for BadgePlacement
impl Unpin for BadgePlacement
impl UnwindSafe for BadgePlacement
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
Mutably borrows from an owned value. Read more
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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.