pub struct OverviewSection { /* private fields */ }Expand description
A named group of overview fields, displayed as a collapsible section.
Implementations§
Source§impl OverviewSection
impl OverviewSection
Sourcepub fn new(label: impl Into<String>) -> Self
pub fn new(label: impl Into<String>) -> Self
Creates an empty section with the given display label.
Sourcepub fn with_children(self, children: &mut Vec<OverviewNode>) -> Self
pub fn with_children(self, children: &mut Vec<OverviewNode>) -> Self
Appends all nodes from children, draining the provided vec.
Sourcepub fn with_child(self, child: OverviewNode) -> Self
pub fn with_child(self, child: OverviewNode) -> Self
Appends a single child node (field or nested section).
Trait Implementations§
Source§impl From<OverviewSection> for OverviewNode
impl From<OverviewSection> for OverviewNode
Source§fn from(section: OverviewSection) -> Self
fn from(section: OverviewSection) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for OverviewSection
impl !UnwindSafe for OverviewSection
impl Freeze for OverviewSection
impl Send for OverviewSection
impl Sync for OverviewSection
impl Unpin for OverviewSection
impl UnsafeUnpin for OverviewSection
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