Skip to main content

stream_path

Function stream_path 

Source
pub fn stream_path(
    t: &TypeRef,
    types: &HashMap<String, Arc<TypeDecl>>,
) -> Option<Vec<String>>
Expand description

K-streams (#2623): where t reaches a Stream, as the chain of fields it is reached through (["Bundle.download", "Download.body"]), or None. A bare Stream (or one inside a wrapper) is the empty chain. A record or sum may carry a stream; such a type is then non-boundary like the stream itself, and this is the walk every boundary check uses to find it. It follows named and applied types into their declarations (a generic record’s own fields too, so Wrap[T] = { s: Stream[T] } is found through Wrap[Int]), but not into a function type, which is rejected at a boundary on its own. Terminates via the visited set.