pub struct LayoutView { /* private fields */ }Expand description
Resolved class and attribute data for the embedded AdminLTE Blade layouts.
let view = oxblade_adminlte::Layout::default().view("ar");
assert!(view.body_classes().starts_with("layout-fixed"));Implementations§
Source§impl LayoutView
impl LayoutView
Sourcepub fn rtl(&self) -> bool
pub fn rtl(&self) -> bool
Whether PHP’s LayoutHelper would use right-to-left assets.
assert!(oxblade_adminlte::Layout::default().view("ar").rtl());Whether the PHP top-navigation mode omits the sidebar.
assert!(!oxblade_adminlte::Layout::default().view("en").topnav());Sourcepub fn body_classes(&self) -> &str
pub fn body_classes(&self) -> &str
Ordered body class names, as in PHP’s LayoutHelper::makeBodyClasses.
assert!(oxblade_adminlte::Layout::default().view("en").body_classes().ends_with("bg-body-tertiary"));Trait Implementations§
Source§impl Clone for LayoutView
impl Clone for LayoutView
Source§impl Debug for LayoutView
impl Debug for LayoutView
Auto Trait Implementations§
impl Forget for LayoutView
impl Freeze for LayoutView
impl Move for LayoutView
impl RefUnwindSafe for LayoutView
impl Send for LayoutView
impl Sync for LayoutViewwhere
RawVecInner: Sync,
impl Unpin for LayoutView
impl UnsafeUnpin for LayoutView
impl UnwindSafe for LayoutView
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoViewData for Twhere
T: Serialize,
impl<T> IntoViewData for Twhere
T: Serialize,
Source§fn into_view_data(self) -> ViewData
fn into_view_data(self) -> ViewData
Converts the value into view data.