diff --git a/src/gopher/type.rs b/src/gopher/type.rs index 0cbc20f..a9badbc 100644 --- a/src/gopher/type.rs +++ b/src/gopher/type.rs @@ -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