Skip to content

Commit

Permalink
Add doc string for format method
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoduncan committed May 7, 2015
1 parent 8556c24 commit 407cdc0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/de/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ pub trait Deserializer {
self.visit(visitor)
}

/// Specify a format string for the deserializer.
///
/// The deserializer format is used to determine which format
/// specific field attributes should be used with the
/// deserializer.
fn format() -> &'static str {
""
}
Expand Down
4 changes: 4 additions & 0 deletions src/ser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ pub trait Serializer {
where K: Serialize,
V: Serialize;

/// Specify a format string for the serializer.
///
/// The serializer format is used to determine which format
/// specific field attributes should be used with the serializer.
fn format() -> &'static str {
""
}
Expand Down

0 comments on commit 407cdc0

Please sign in to comment.