Struct intuitive::components::Centered
source · 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: KeyHandler
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Centered
impl Send for Centered
impl Sync for Centered
impl Unpin for Centered
impl !UnwindSafe 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