comment describing try_from_long()

master
rasul 5 years ago
parent a9f42be8d8
commit eb01abb0f0

@ -178,6 +178,7 @@ impl Direction {
} }
} }
/// Attempt to get a direction from text.
pub fn try_from_long<S: AsRef<str>>(s: S) -> RudeResult<Self> { pub fn try_from_long<S: AsRef<str>>(s: S) -> RudeResult<Self> {
let s = s.as_ref(); let s = s.as_ref();
match s { match s {

Loading…
Cancel
Save