pub struct Breadcrumb<'a> { /* private fields */ }Expand description
Breadcrumb navigation bar builder. Auto-renders on Drop.
Constructed via Context::breadcrumb. Chain .separator(s) to override
the default › separator and .color(c) to override the link color.
Drop the value to render without capturing a response, or call
Self::show to render and obtain a BreadcrumbResponse.
Drop is intentional: ui.breadcrumb(&["Home", "src"]).separator(" > ");
is the idiomatic form when the response isn’t needed.
Implementations§
Source§impl<'a> Breadcrumb<'a>
impl<'a> Breadcrumb<'a>
Sourcepub fn separator(self, sep: &'a str) -> Self
pub fn separator(self, sep: &'a str) -> Self
Set the separator string between segments (default: ›).
Sourcepub fn color(self, color: Color) -> Self
pub fn color(self, color: Color) -> Self
Override the link (clickable segment) color. Defaults to theme.primary.
Sourcepub fn show(self) -> BreadcrumbResponse
pub fn show(self) -> BreadcrumbResponse
Render now and return the BreadcrumbResponse.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Breadcrumb<'a>
impl<'a> !RefUnwindSafe for Breadcrumb<'a>
impl<'a> !Send for Breadcrumb<'a>
impl<'a> !Sync for Breadcrumb<'a>
impl<'a> Unpin for Breadcrumb<'a>
impl<'a> UnsafeUnpin for Breadcrumb<'a>
impl<'a> !UnwindSafe for Breadcrumb<'a>
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