pub struct DashboardStrategy { /* private fields */ }Expand description
Builder for dashboard strategies.
Implementations§
Source§impl DashboardStrategy
impl DashboardStrategy
Sourcepub fn auto_fill(self, min_width: f32) -> Self
pub fn auto_fill(self, min_width: f32) -> Self
Use responsive repeat(auto-fill, minmax(min_width, 1fr)) columns.
Sourcepub fn auto_fit(self, min_width: f32) -> Self
pub fn auto_fit(self, min_width: f32) -> Self
Use responsive repeat(auto-fit, minmax(min_width, 1fr)) columns.
Sourcepub fn with_cards(
self,
cards: impl IntoIterator<Item = (impl Into<Arc<str>>, impl Into<CardSpan>)>,
) -> BoundStrategy
pub fn with_cards( self, cards: impl IntoIterator<Item = (impl Into<Arc<str>>, impl Into<CardSpan>)>, ) -> BoundStrategy
Bind cards with explicit column spans.
Sourcepub fn with_panels(
self,
panels: impl IntoIterator<Item = impl Into<Arc<str>>>,
) -> BoundStrategy
pub fn with_panels( self, panels: impl IntoIterator<Item = impl Into<Arc<str>>>, ) -> BoundStrategy
Bind panels with all spans defaulting to 1.
Sourcepub fn build(self) -> Strategy
pub fn build(self) -> Strategy
Convert to a generic Strategy with no cards bound yet.
The resulting strategy will have empty spans — bind panels via
Strategy::with_panels (all spans default to 1).
Trait Implementations§
Source§impl Clone for DashboardStrategy
impl Clone for DashboardStrategy
Source§fn clone(&self) -> DashboardStrategy
fn clone(&self) -> DashboardStrategy
Returns a duplicate 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 Debug for DashboardStrategy
impl Debug for DashboardStrategy
Source§impl From<DashboardStrategy> for Strategy
impl From<DashboardStrategy> for Strategy
Source§fn from(builder: DashboardStrategy) -> Self
fn from(builder: DashboardStrategy) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DashboardStrategy
impl RefUnwindSafe for DashboardStrategy
impl Send for DashboardStrategy
impl Sync for DashboardStrategy
impl Unpin for DashboardStrategy
impl UnsafeUnpin for DashboardStrategy
impl UnwindSafe for DashboardStrategy
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