pub struct View {
pub root: NodeBlueprint,
}Expand description
Represents an opaque handle to a rendered UI subtree.
Fields§
§root: NodeBlueprintImplementations§
Source§impl View
impl View
pub fn new(root: NodeBlueprint) -> View
Sourcepub fn flatten_fragments(self) -> View
pub fn flatten_fragments(self) -> View
Recursively flattens nested Fragment nodes within Element children.
Trait Implementations§
Source§impl IntoChildren<NodeBlueprint> for View
impl IntoChildren<NodeBlueprint> for View
fn into_children(self) -> NodeBlueprint
Source§impl IntoChildren<Option<NodeBlueprint>> for View
impl IntoChildren<Option<NodeBlueprint>> for View
fn into_children(self) -> Option<NodeBlueprint>
Source§impl IntoChildren<Option<Vec<NodeBlueprint>>> for View
impl IntoChildren<Option<Vec<NodeBlueprint>>> for View
fn into_children(self) -> Option<Vec<NodeBlueprint>>
Source§impl IntoChildren<Vec<NodeBlueprint>> for View
impl IntoChildren<Vec<NodeBlueprint>> for View
fn into_children(self) -> Vec<NodeBlueprint>
Source§impl IntoChildren<View> for View
impl IntoChildren<View> for View
fn into_children(self) -> View
Source§impl IntoChildren<View> for NodeBlueprint
impl IntoChildren<View> for NodeBlueprint
fn into_children(self) -> View
Source§impl IntoChildren<View> for Vec<NodeBlueprint>
impl IntoChildren<View> for Vec<NodeBlueprint>
fn into_children(self) -> View
Source§impl IntoChildren<View> for Option<Vec<NodeBlueprint>>
impl IntoChildren<View> for Option<Vec<NodeBlueprint>>
fn into_children(self) -> View
Source§impl IntoNodeBlueprint for View
impl IntoNodeBlueprint for View
fn into_node_blueprint(self) -> NodeBlueprint
Auto Trait Implementations§
impl !RefUnwindSafe for View
impl !Send for View
impl !Sync for View
impl !UnwindSafe for View
impl Forget for View
impl Freeze for View
impl Move 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