[−][src]Enum phd::gopher::Type
Gopher types are defined according to RFC 1436.
Variants
Implementations
impl Type
[src]
pub fn is_info(self) -> bool
[src]
Is this an info line?
pub fn is_text(self) -> bool
[src]
Text document?
pub fn is_html(self) -> bool
[src]
HTML link?
pub fn is_telnet(self) -> bool
[src]
Telnet link?
pub fn is_link(self) -> bool
[src]
Is this a link, ie something we can navigate to or open?
pub fn is_download(self) -> bool
[src]
Is this something we can download?
pub fn to_char(self) -> char
[src]
Gopher Item Type to RFC char.
pub fn from(c: char) -> Option<Type>
[src]
Create a Gopher Item Type from its RFC char code.
Trait Implementations
impl Clone for Type
[src]
impl Copy for Type
[src]
impl Debug for Type
[src]
impl Display for Type
[src]
impl PartialEq<Type> for Type
[src]
impl StructuralPartialEq for Type
[src]
Auto Trait Implementations
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,