pub struct LayoutRegistry { /* private fields */ }Expand description
Registry mapping layout names to implementations.
Created with three built-in layouts: “default” (DefaultLayout),
“app” (AppLayout), and “auth” (AuthLayout). Additional layouts
can be registered at application startup.
Implementations§
Source§impl LayoutRegistry
impl LayoutRegistry
Sourcepub fn register(
&mut self,
name: impl Into<String>,
layout: impl Layout + 'static,
)
pub fn register( &mut self, name: impl Into<String>, layout: impl Layout + 'static, )
Register a layout by name. Replaces any existing layout with the same name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayoutRegistry
impl !RefUnwindSafe for LayoutRegistry
impl Send for LayoutRegistry
impl Sync for LayoutRegistry
impl Unpin for LayoutRegistry
impl UnsafeUnpin for LayoutRegistry
impl !UnwindSafe for LayoutRegistry
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