MCPcopy Create free account
hub / github.com/Kethku/Pando / child

Method child

aspen/src/context_stack/context.rs:139–152  ·  view source on GitHub ↗
(&self, element_token: Token, element_children: &'a Vec<Token>)

Source from the content-addressed store, hash-verified

137 }
138
139 pub fn child<'b>(&self, element_token: Token, element_children: &'a Vec<Token>) -> Context<'b>
140 where
141 'a: 'b,
142 {
143 Context {
144 event_state: self.event_state,
145 shaper: self.shaper,
146 states: self.states,
147 default_text_styles: self.default_text_styles.clone(),
148 focused_element: self.focused_element,
149 element_token,
150 element_children,
151 }
152 }
153}

Callers 5

updateMethod · 0.45
layoutMethod · 0.45
drawMethod · 0.45
with_contextMethod · 0.45
for_regionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected