aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBehnam Esfahbod ✅ <behnam@zwnj.org>2017-09-14 22:37:51 -0700
committerGitHub <noreply@github.com>2017-09-14 22:37:51 -0700
commit2584d1327cdf919c49d42675ed36119e6f2bf44a (patch)
tree5a436bd9851ce3d2aaafaab22a8b95a297aaceec /src
parentad5bd8758e60fc918423bbbf3dedf04037487d62 (diff)
downloadmilf-rs-2584d1327cdf919c49d42675ed36119e6f2bf44a.tar.gz
milf-rs-2584d1327cdf919c49d42675ed36119e6f2bf44a.zip
[value] Fix some method docs
Diffstat (limited to 'src')
-rw-r--r--src/value.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/value.rs b/src/value.rs
index 056eac4..2fdff97 100644
--- a/src/value.rs
+++ b/src/value.rs
@@ -95,7 +95,7 @@ impl Value {
match *self { Value::Integer(i) => Some(i), _ => None }
}
- /// Tests whether this value is an integer
+ /// Tests whether this value is an integer.
pub fn is_integer(&self) -> bool {
self.as_integer().is_some()
}
@@ -105,7 +105,7 @@ impl Value {
match *self { Value::Float(f) => Some(f), _ => None }
}
- /// Tests whether this value is a float
+ /// Tests whether this value is a float.
pub fn is_float(&self) -> bool {
self.as_float().is_some()
}
@@ -115,7 +115,7 @@ impl Value {
match *self { Value::Boolean(b) => Some(b), _ => None }
}
- /// Tests whether this value is a boolean
+ /// Tests whether this value is a boolean.
pub fn is_bool(&self) -> bool {
self.as_bool().is_some()
}
@@ -125,7 +125,7 @@ impl Value {
match *self { Value::String(ref s) => Some(&**s), _ => None }
}
- /// Tests if this value is a string
+ /// Tests if this value is a string.
pub fn is_str(&self) -> bool {
self.as_str().is_some()
}
@@ -142,7 +142,7 @@ impl Value {
match *self { Value::Datetime(ref s) => Some(s), _ => None }
}
- /// Tests whether this value is a datetime
+ /// Tests whether this value is a datetime.
pub fn is_datetime(&self) -> bool {
self.as_datetime().is_some()
}
@@ -157,7 +157,7 @@ impl Value {
match *self { Value::Array(ref mut s) => Some(s), _ => None }
}
- /// Tests whether this value is an array
+ /// Tests whether this value is an array.
pub fn is_array(&self) -> bool {
self.as_array().is_some()
}
@@ -172,7 +172,7 @@ impl Value {
match *self { Value::Table(ref mut s) => Some(s), _ => None }
}
- /// Extracts the table value if it is a table.
+ /// Tests whether this value is a table.
pub fn is_table(&self) -> bool {
self.as_table().is_some()
}