RSX dependency
This commit is contained in:
@@ -48,9 +48,9 @@ fn app(cx: &Arc<Context>) -> View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// for %count, mount as _, (i in 0..count.get_dl()) {
|
for %count, mount as _, (i in 0..count.get_dl()) {
|
||||||
// "{i}"
|
"{i}"
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
.view(cx.clone())
|
.view(cx.clone())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ macro_rules! rsx {
|
|||||||
macro_rules! rsx_scope {
|
macro_rules! rsx_scope {
|
||||||
($rsx:expr, for $(%$($dep:ident $(as $dp:pat,)?),+)? ($p:pat in $v:expr) {$($inner:tt)*} $($rest:tt)*) => {
|
($rsx:expr, for $(%$($dep:ident $(as $dp:pat,)?),+)? ($p:pat in $v:expr) {$($inner:tt)*} $($rest:tt)*) => {
|
||||||
{
|
{
|
||||||
|
$($($crate::rsx_dep!($dep);)+)?
|
||||||
|
|
||||||
$rsx.dynamic_scope({
|
$rsx.dynamic_scope({
|
||||||
$($($crate::rsx_dep!($dep $(as $dp)?);)+)?
|
$($($crate::rsx_dep!($dep $(as $dp)?);)+)?
|
||||||
move |scope| {
|
move |scope| {
|
||||||
@@ -32,6 +34,8 @@ macro_rules! rsx_scope {
|
|||||||
|
|
||||||
($rsx:expr, if $(%$($dep:ident $(as $dp:pat,)?),+)? ($st:expr) {$($inner:tt)*} $($rest:tt)*) => {
|
($rsx:expr, if $(%$($dep:ident $(as $dp:pat,)?),+)? ($st:expr) {$($inner:tt)*} $($rest:tt)*) => {
|
||||||
{
|
{
|
||||||
|
$($($crate::rsx_dep!($dep);)+)?
|
||||||
|
|
||||||
$rsx.dynamic_scope({
|
$rsx.dynamic_scope({
|
||||||
$($($crate::rsx_dep!($dep $(as $dp)?);)+)?
|
$($($crate::rsx_dep!($dep $(as $dp)?);)+)?
|
||||||
move |scope| {
|
move |scope| {
|
||||||
|
|||||||
Reference in New Issue
Block a user