pub enum TitleAlign {
Leading,
Center,
}Expand description
Where an [AppBar](rosace_widgets equivalent — see rosace-widgets)
positions its title relative to the bar, per D105.
Variants§
Leading
Centered within the space between the leading widget and the actions (falls back to left-aligned if the title doesn’t fit) — today’s existing behavior, kept as the default so converting AppBar to read this doesn’t change any app that hasn’t opted into a platform theme.
Center
Centered in the FULL bar width regardless of leading/actions — the iOS convention.
Trait Implementations§
Source§impl Clone for TitleAlign
impl Clone for TitleAlign
Source§fn clone(&self) -> TitleAlign
fn clone(&self) -> TitleAlign
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 TitleAlign
Source§impl Debug for TitleAlign
impl Debug for TitleAlign
impl Eq for TitleAlign
Source§impl PartialEq for TitleAlign
impl PartialEq for TitleAlign
impl StructuralPartialEq for TitleAlign
Auto Trait Implementations§
impl Freeze for TitleAlign
impl RefUnwindSafe for TitleAlign
impl Send for TitleAlign
impl Sync for TitleAlign
impl Unpin for TitleAlign
impl UnsafeUnpin for TitleAlign
impl UnwindSafe for TitleAlign
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