pub struct View {
pub id: ViewId,
pub kind: ViewKind,
pub modifier: Modifier,
pub children: Vec<View>,
pub semantics: Option<Semantics>,
pub scope_key: Option<String>,
}Fields§
§id: ViewId§kind: ViewKind§modifier: Modifier§children: Vec<View>§semantics: Option<Semantics>§scope_key: Option<String>Set by scope! macro to mark this as a scope boundary node.
Carries the scope key (e.g., “title”, “color_buttons”) for per-scope
TaffyTree isolation.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for View
impl !Send for View
impl !Sync for View
impl !UnwindSafe for View
impl Freeze for View
impl Unpin for View
impl UnsafeUnpin for View
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