aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-09-15 09:07:55 -0500
committerGitHub <noreply@github.com>2017-09-15 09:07:55 -0500
commit85a1c8a5d7d58f11d9057a592fcd8637c9e62b4f (patch)
tree555311ac86c8ea18834b5b3ab3f9dc1aeeae28a5 /src
parent9e536790932de13ee91f6d2b1b8e79249613886b (diff)
parent2584d1327cdf919c49d42675ed36119e6f2bf44a (diff)
downloadmilf-rs-85a1c8a5d7d58f11d9057a592fcd8637c9e62b4f.tar.gz
milf-rs-85a1c8a5d7d58f11d9057a592fcd8637c9e62b4f.zip
Merge pull request #213 from behnam/doc
[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()
}