pub struct Grid { /* private fields */ }Expand description
A responsive grid: cols columns on wide screens, fewer on narrow ones.
With min_width, as many columns as fit.
Implementations§
Source§impl Grid
impl Grid
pub fn new() -> Self
Sourcepub fn class(self, v: impl Into<String>) -> Self
pub fn class(self, v: impl Into<String>) -> Self
Extra classes for the outer element. They win over the defaults.
Sourcepub fn with(self, part: impl Part) -> Self
pub fn with(self, part: impl Part) -> Self
Add an attribute (class(..), id(..), aria(..), …) or a child.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Grid
impl !Sync for Grid
impl !UnwindSafe for Grid
impl Forget for Grid
impl Freeze for Grid
impl Move for Grid
impl Send for Grid
impl Unpin for Grid
impl UnsafeUnpin for Grid
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