We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bbf0b1 commit 560b9d8Copy full SHA for 560b9d8
src/value.rs
@@ -6,15 +6,15 @@ use std::string;
6
///
7
/// (The default value is represented as a string.)
8
pub trait Value {
9
- // set
+ /// set sets the underlying value.
10
fn set(&mut self, val: string::String) -> Result<(), string::String>;
11
12
- // value
+ /// value retrieves the current value as a String.
13
fn value(&self) -> string::String;
14
15
- // typ returns the type name as a string. By default,
16
- // all Values are assumed to be strings.
17
- //
+ /// typ returns the type name as a string. By default,
+ /// all Values are assumed to be strings.
+ ///
18
fn typ(&self) -> &str {
19
"String"
20
}
0 commit comments