Enum dae_parser::Url[][src]

pub enum Url {
    Fragment(String),
    Other(String),
}
Expand description

A (really) basic URL parser.

It is optimized for the case of COLLADA documents where most “URLs” are really just names of other entities in the document, prefixed by #. Unfortunately the url crate does not like these fragments, and we don’t have a base URL to work from since the parser does not do URL resolution. So we parse fragments and leave everything else to be parsed by a proper URL crate during resolution.

Variants

Fragment(String)

A fragment #foo. The string is the percent-decoded payload "foo".

Tuple Fields of Fragment

0: String
Other(String)

A maybe-URL which is not a fragment. These are unparsed and unvalidated.

Tuple Fields of Other

0: String

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.