#[non_exhaustive]pub enum HomeNode {
Text {
text: String,
variant: HomeText,
},
Row(Vec<HomeNode>),
Column(Vec<HomeNode>),
Card(Vec<HomeNode>),
Tabs(Vec<(String, HomeNode)>),
Divider,
Child(usize),
Chart(DrawnChart),
Scene(Box<HomeScene>),
Depth {
depth: DrawnDepth,
children: Vec<HomeNode>,
},
}Expand description
What the home and the terminal show for an extension component: forms components, charts,
3D scenes and depth effects, never a button or a field, so a projection only shows (spec
3.3 §7.4 rule 5). Every string in it is checked again, and every child the component’s
slots hold must appear exactly once, as HomeNode::Child.
A scene’s panels and a wall or stage’s children hold only what shows: no button or field anywhere inside them. A scene’s text view holds no child. Scenes and depth effects don’t nest in each other.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Text
Text.
Row(Vec<HomeNode>)
Side by side.
Column(Vec<HomeNode>)
One above another.
Card(Vec<HomeNode>)
On a card.
Tabs(Vec<(String, HomeNode)>)
Tabs, each a title and what it shows.
Divider
A rule.
Child(usize)
The component’s child at this index, drawn as the home draws it.
Chart(DrawnChart)
A chart the home draws natively.
Scene(Box<HomeScene>)
A 3D scene the home draws natively, with its panels and its text view.
Depth
Children the home presents in depth, with CSS 3D.
Implementations§
Trait Implementations§
impl StructuralPartialEq for HomeNode
Auto Trait Implementations§
impl Forget for HomeNode
impl Freeze for HomeNodewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<HomeNode>: Freeze,
PhantomData<(String, HomeNode)>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ChartTick>: Freeze,
PhantomData<ChartSeries>: Freeze,
*const HomeScene is !null: Freeze,
PhantomData<HomeScene>: Freeze,
impl Move for HomeNode
impl RefUnwindSafe for HomeNode
impl Send for HomeNode
impl Sync for HomeNode
impl Unpin for HomeNode
impl UnsafeUnpin for HomeNodewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<HomeNode>: UnsafeUnpin,
PhantomData<(String, HomeNode)>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ChartTick>: UnsafeUnpin,
PhantomData<ChartSeries>: UnsafeUnpin,
*const HomeScene is !null: UnsafeUnpin,
PhantomData<HomeScene>: UnsafeUnpin,
impl UnwindSafe for HomeNode
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more