Skip to main content

get_location_root_for_node

Function get_location_root_for_node 

Source
pub fn get_location_root_for_node<'a>(
    screenplay_document: &'a ScreenplayDocument,
    location_id: &'a LocationID,
) -> Option<&'a LocationID>
Expand description

Gets the Location ID of the root in this location path, from a given LocationID.

Returns 'None if the LocationID is invalid.