Type::is_text()

pull/14/head
chris west 4 years ago
parent a8c8b255a4
commit 617bd25c0e

@ -31,6 +31,11 @@ impl Type {
self == Type::Info
}
/// Text document?
pub fn is_text(self) -> bool {
self == Type::Text
}
/// HTML link?
pub fn is_html(self) -> bool {
self == Type::HTML

Loading…
Cancel
Save