Skip to main content

bound_as_ref

Function bound_as_ref 

Source
pub open spec fn bound_as_ref<T>(b: &Bound<T>) -> Bound<&T>
Expand description
{
    match b {
        Bound::Included(start) => Bound::Included(start),
        Bound::Excluded(start) => Bound::Excluded(start),
        Bound::Unbounded => Bound::Unbounded,
    }
}