[−][src]Enum polyhorn_core::Element
Variants
String(String)Implementations
impl<P: ?Sized> Element<P> where
P: Platform, [src]
P: Platform,
pub fn new(
key: Key,
component: P::Component,
children: Element<P>
) -> Element<P>[src]
key: Key,
component: P::Component,
children: Element<P>
) -> Element<P>
pub fn builtin(
key: Key,
builtin: impl Builtin<P> + 'static,
children: Element<P>,
reference: Option<WeakReference<P, Option<P::ContainerID>>>
) -> Element<P>[src]
key: Key,
builtin: impl Builtin<P> + 'static,
children: Element<P>,
reference: Option<WeakReference<P, Option<P::ContainerID>>>
) -> Element<P>
pub fn context<T>(key: Key, value: Rc<T>, children: Element<P>) -> Element<P> where
T: Any, [src]
T: Any,
pub fn empty() -> Element<P>[src]
pub fn fragment(key: Key, elements: Vec<Element<P>>) -> Element<P>[src]
pub fn string(value: &str) -> Element<P>[src]
pub fn key(&self) -> &Key[src]
pub fn to_vec(&self) -> Vec<&Element<P>>[src]
pub fn at(&self, index: usize) -> Option<&Element<P>>[src]
Trait Implementations
impl<P: ?Sized> Clone for Element<P> where
P: Platform, [src]
P: Platform,
fn clone(&self) -> Self[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<P: ?Sized, '_> From<&'_ str> for Element<P> where
P: Platform, [src]
P: Platform,
impl<P: ?Sized, '_> From<Option<&'_ Element<P>>> for Element<P> where
P: Platform, [src]
P: Platform,
impl<P: ?Sized> From<Option<Element<P>>> for Element<P> where
P: Platform, [src]
P: Platform,
impl<P: ?Sized> From<String> for Element<P> where
P: Platform, [src]
P: Platform,
impl<P: ?Sized> From<Vec<Element<P>>> for Element<P> where
P: Platform, [src]
P: Platform,
Auto Trait Implementations
impl<P> !RefUnwindSafe for Element<P>
impl<P> !Send for Element<P>
impl<P> !Sync for Element<P>
impl<P: ?Sized> Unpin for Element<P> where
<P as Platform>::Component: Unpin,
<P as Platform>::ContainerID: Unpin,
<P as Platform>::Component: Unpin,
<P as Platform>::ContainerID: Unpin,
impl<P> !UnwindSafe for Element<P>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,