Skip to main content

add_object

Function add_object 

Source
pub fn add_object(
    registry: &mut ShapeRegistry,
    id: Option<&str>,
    properties: Vec<(String, Type)>,
) -> Type
Expand description

Add an object to a ShapeRegistry. Returns a Type::Object representing the added object.