Rename predicates -> preds

This commit is contained in:
Eryn Wells 2018-08-23 07:53:04 -07:00
parent 234b60dde9
commit f197f1ba8b

View file

@ -1,7 +1,10 @@
/* types/src/predicates.rs
/* types/src/preds.rs
* Eryn Wells <eryn@erynwells.me>
*/
//! This module defines several important predicates for determing what kind of
//! a thing this Object is.
pub trait IsNull {
/// Is this thing null?
fn is_null(&self) -> bool { false }
@ -33,3 +36,8 @@ pub trait IsNumber {
/// Should return `true` if this Value is a integer number type.
fn is_integer(&self) -> bool { false }
}
pub trait IsPair {
/// Should return `true` if this Value is a pair.
fn is_pair(&self) -> bool { false }
}