pub fn is_nf(&self) -> bool {
        match *self {
            Value::Universe(_) | Value::Literal(_) => true,
            Value::Pi(ref scope) | Value::Lam(ref scope) => {
                (scope.unsafe_pattern.1).0.is_nf() && scope.unsafe_body.is_nf()
            },
            Value::RecordType(ref scope) | Value::Record(ref scope) => scope
                .unsafe_pattern
                .unsafe_patterns
                .iter()
                .all(|(_, _, Embed(ref term))| term.is_nf()),
            Value::Array(ref elems) => elems.iter().all(|elem| elem.is_nf()),
            Value::Neutral(_, _) => false,
        }
    }
/// Returns `true` if the value is in normal form (ie. it contains no neutral terms within it)
Returns `true` if the value is in normal form
Returns ` true ` if the value is in normal form
pub fn is_nf(&self) -> bool {
        match *self {
            Value::Universe(_) | Value::Literal(_) => true,
            Value::Pi(ref scope) | Value::Lam(ref scope) => {
                (scope.unsafe_pattern.1).0.is_nf() && scope.unsafe_body.is_nf()
            },
            Value::RecordType(ref scope) | Value::Record(ref scope) => scope
                .unsafe_pattern
                .unsafe_patterns
                .iter()
                .all(|(_, _, Embed(ref term))| term.is_nf()),
            Value::Array(ref elems) => elems.iter().all(|elem| elem.is_nf()),
            Value::Neutral(_, _) => false,
        }
    }
pub fn is_nf ( & self ) -> bool { match * self { Value :: Universe ( _ ) | Value :: Literal ( _ ) => true , Value :: Pi ( ref scope ) | Value :: Lam ( ref scope ) => { ( scope . unsafe_pattern . 1 ) . 0 . is_nf ( ) && scope . unsafe_body . is_nf ( ) } , Value :: RecordType ( ref scope ) | Value :: Record ( ref scope ) => scope . unsafe_pattern . unsafe_patterns . iter ( ) . all ( | ( _ , _ , Embed ( ref term ) ) | term . is_nf ( ) ) , Value :: Array ( ref elems ) => elems . iter ( ) . all ( | elem | elem . is_nf ( ) ) , Value :: Neutral ( _ , _ ) => false , } }
Returns `true` if the value is in normal form (ie.
Returns ` true ` if the value is in normal form ( ie .
&self
&self