pub struct Centered {
pub children: Children<1>,
pub on_key: KeyHandler,
}Expand description
A component for centering its contents.
For example,
#[component(Root)]
fn render() {
render! {
Centered() {
Section(title: "I'm centered")
}
}
}Fields§
§children: Children<1>§on_key: KeyHandlerImplementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Centered
impl !UnwindSafe for Centered
impl Freeze for Centered
impl Send for Centered
impl Sync for Centered
impl Unpin for Centered
impl UnsafeUnpin for Centered
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