pub struct Header<A> { /* private fields */ }
Expand description
Default svg header
Implementations§
source§impl<A: Attr> Header<A>
impl<A: Attr> Header<A>
pub fn with<AA: Attr>(self, attr: AA) -> Header<AA>
pub fn with_viewbox_width(self, width: f64) -> Self
pub fn get_viewbox(&self) -> [f64; 2]
pub fn with_dim(self, dim: [f64; 2]) -> Self
pub fn with_viewbox(self, viewbox: [f64; 2]) -> Self
pub fn light_theme(self) -> Append<Self, Theme<'static>>
pub fn dark_theme(self) -> Append<Self, Theme<'static>>
Trait Implementations§
source§impl<A: Attr> Elem for Header<A>
impl<A: Attr> Elem for Header<A>
type Tail = ElementTail<&'static str>
fn render_head(self, w: ElemWrite<'_>) -> Result<Self::Tail, Error>
source§fn render_closure<K>(
self,
w: ElemWrite<'_>,
func: impl FnOnce(ElemWrite<'_>) -> Result<K, Error>
) -> Result<K, Error>where
Self: Sized,
fn render_closure<K>( self, w: ElemWrite<'_>, func: impl FnOnce(ElemWrite<'_>) -> Result<K, Error> ) -> Result<K, Error>where Self: Sized,
👎Deprecated
source§fn chain<R>(self, other: R) -> Chain<Self, R>where
R: Elem,
Self: Sized,
fn chain<R>(self, other: R) -> Chain<Self, R>where R: Elem, Self: Sized,
Render all of Self and head of other, store tail of other.
source§fn append<R>(self, bottom: R) -> Append<Self, R>where
R: Elem,
Self: Sized,
fn append<R>(self, bottom: R) -> Append<Self, R>where R: Elem, Self: Sized,
Render head of Self, and all of other, store tail of self.
source§fn inline(self) -> Inliner<Self>where
Self: Sized,
fn inline(self) -> Inliner<Self>where Self: Sized,
Force this element and descendants to be written out
inline.
fn with_tab(self, new_tab: &'static str) -> WithTab<Self>where Self: Sized,
fn some(self) -> Option<Self>where Self: Sized,
impl<A: Copy> Copy for Header<A>
impl<A> Locked for Header<A>
Auto Trait Implementations§
impl<A> RefUnwindSafe for Header<A>where A: RefUnwindSafe,
impl<A> Send for Header<A>where A: Send,
impl<A> Sync for Header<A>where A: Sync,
impl<A> Unpin for Header<A>where A: Unpin,
impl<A> UnwindSafe for Header<A>where A: UnwindSafe,
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