pub struct Card<'a, A: Render, B: Render> {
pub title: &'a str,
pub actions: A,
pub body: B,
pub padded_body: bool,
}Expand description
Framed card with header, optional right-aligned actions, and body slot.
Fields§
§title: &'a str§actions: A§body: B§padded_body: boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, A, B> Forget for Card<'a, A, B>
impl<'a, A, B> Freeze for Card<'a, A, B>
impl<'a, A, B> Move for Card<'a, A, B>
impl<'a, A, B> RefUnwindSafe for Card<'a, A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<'a, A, B> Send for Card<'a, A, B>
impl<'a, A, B> Sync for Card<'a, A, B>
impl<'a, A, B> Unpin for Card<'a, A, B>
impl<'a, A, B> UnsafeUnpin for Card<'a, A, B>
impl<'a, A, B> UnwindSafe for Card<'a, A, B>
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