Skip to content

Commit

Permalink
Add additional convenience functions on Value type
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiemh committed Sep 23, 2022
1 parent b31dbb2 commit 26de0b5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/src/sql/value/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,14 @@ impl Value {
matches!(self, Value::Thing(_))
}

pub fn is_model(&self) -> bool {
matches!(self, Value::Model(_))
}

pub fn is_range(&self) -> bool {
matches!(self, Value::Range(_))
}

pub fn is_strand(&self) -> bool {
matches!(self, Value::Strand(_))
}
Expand Down

0 comments on commit 26de0b5

Please sign in to comment.