Skip to main content

span_contains

Function span_contains 

Source
pub fn span_contains(outer: &Span, inner: &Span) -> bool
Expand description

Returns true if inner is entirely contained within outer.

Both spans must reference the same SourceId for this to return true.