Rename predicates -> preds
This commit is contained in:
parent
234b60dde9
commit
f197f1ba8b
1 changed files with 9 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
||||||
/* types/src/predicates.rs
|
/* types/src/preds.rs
|
||||||
* Eryn Wells <eryn@erynwells.me>
|
* Eryn Wells <eryn@erynwells.me>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
//! This module defines several important predicates for determing what kind of
|
||||||
|
//! a thing this Object is.
|
||||||
|
|
||||||
pub trait IsNull {
|
pub trait IsNull {
|
||||||
/// Is this thing null?
|
/// Is this thing null?
|
||||||
fn is_null(&self) -> bool { false }
|
fn is_null(&self) -> bool { false }
|
||||||
|
@ -33,3 +36,8 @@ pub trait IsNumber {
|
||||||
/// Should return `true` if this Value is a integer number type.
|
/// Should return `true` if this Value is a integer number type.
|
||||||
fn is_integer(&self) -> bool { false }
|
fn is_integer(&self) -> bool { false }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub trait IsPair {
|
||||||
|
/// Should return `true` if this Value is a pair.
|
||||||
|
fn is_pair(&self) -> bool { false }
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue