Skip to main content

extend

Function extend 

Source
pub fn extend(extra: impl Into<Spec>, spec: impl Into<Spec>) -> Node
Expand description

Add the properties of another object shape; a property both declare takes the extension’s. The result stays open or closed as the base was.