Struct VElement

Source
pub struct VElement<'a, const CHLD: usize = CHLD_DEFAULT, const ATTR: usize = ATTR_DEFAULT> { /* private fields */ }

Implementations§

Source§

impl<'a> VElement<'a>

Source

pub fn new(name: impl Into<Cow<'a, str>>) -> Self

Source

pub fn new_sized<const C: usize, const A: usize>( name: impl Into<Cow<'a, str>>, ) -> VElement<'a, C, A>

Source§

impl<'a, const CHLD: usize, const ATTR: usize> VElement<'a, CHLD, ATTR>

Source

pub fn child(self, child: impl Render + 'a) -> Self

Source

pub fn attr(self, attr: impl Into<VAttribute<'a>>) -> Self

Source

pub fn single(self, value: bool) -> Self

Source

pub fn get_children_presize(&self) -> usize

Source

pub fn get_attributes_presize(&self) -> usize

Source

pub fn is_children_spilled(&self) -> bool

Source

pub fn is_attributes_spilled(&self) -> bool

Trait Implementations§

Source§

impl<const CHLD: usize, const ATTR: usize> Render for VElement<'_, CHLD, ATTR>

Source§

fn render(&self) -> String

Rendering a structure into a string

Auto Trait Implementations§

§

impl<'a, const CHLD: usize, const ATTR: usize> Freeze for VElement<'a, CHLD, ATTR>

§

impl<'a, const CHLD: usize = CHLD_DEFAULT, const ATTR: usize = ATTR_DEFAULT> !RefUnwindSafe for VElement<'a, CHLD, ATTR>

§

impl<'a, const CHLD: usize = CHLD_DEFAULT, const ATTR: usize = ATTR_DEFAULT> !Send for VElement<'a, CHLD, ATTR>

§

impl<'a, const CHLD: usize = CHLD_DEFAULT, const ATTR: usize = ATTR_DEFAULT> !Sync for VElement<'a, CHLD, ATTR>

§

impl<'a, const CHLD: usize, const ATTR: usize> Unpin for VElement<'a, CHLD, ATTR>

§

impl<'a, const CHLD: usize = CHLD_DEFAULT, const ATTR: usize = ATTR_DEFAULT> !UnwindSafe for VElement<'a, CHLD, ATTR>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.