Skip to main content

immediate_parent

Function immediate_parent 

Source
pub fn immediate_parent(clip: &Clip) -> Option<(String, EdgeType)>
Expand description

The clip’s primary parent id and the edge that links them.

Applies the same precedence as edge_type, then reads the parent pointer appropriate to that operation, falling through per-op candidates in order. Every id is normalised (a leading m_ stripped, an empty or all-zero sentinel treated as absent). Returns None for a root or when no usable parent id is present.