Enum rdftk_iri::error::ErrorKind[][src]

pub enum ErrorKind {
Show variants Msg(String), IsEmpty, ParseSchemeError(String), ParseAuthorityError(String), ParseIpAddressError(String), ParseHostError(String), ParsePortError(String), ParseUserInfoError(String), ParseFragmentError(String), Normalization(Component), InvalidChar(Component), Syntax(String), NotValidBase, EmptyPrefixedName, InvalidPrefixedName(String), // some variants omitted
}

The kind of an error.

Variants

Msg(String)

A convenient variant for String.

IsEmpty

An IRI cannot be constructed from the empty string.

ParseSchemeError(String)

An error occurred parsing the IRI scheme.

ParseAuthorityError(String)

An error occurred parsing the IRI authority.

ParseIpAddressError(String)

An error occurred parsing the IRI IP address name.

ParseHostError(String)

An error occurred parsing the IRI host name.

ParsePortError(String)

An error occurred parsing the IRI port number.

ParseUserInfoError(String)

An error occurred parsing the IRI user info.

ParseFragmentError(String)

An error occurred parsing the IRI fragment.

Normalization(Component)

An error occurred normalizing an IRI component.

InvalidChar(Component)

An invalid character was found.

Syntax(String)

Provided String value is not a valid IRI.

NotValidBase

The current IRI is not a valid base URI (RFC-3986§5.2.1).

EmptyPrefixedName

A PrefixedName may not have an empty name part.

InvalidPrefixedName(String)

The String value provided is not a valid PrefixedName.

Implementations

impl ErrorKind[src]

pub fn description(&self) -> &str[src]

A string describing the error kind.

Trait Implementations

impl Debug for ErrorKind[src]

impl Display for ErrorKind[src]

impl<'a> From<&'a str> for ErrorKind[src]

impl From<Error> for ErrorKind[src]

impl From<ErrorKind> for Error[src]

impl From<String> for ErrorKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.