Enum uhttp_media_type::ParamValue [] [src]

pub enum ParamValue<'a> {
    Unquoted(&'a str),
    Quoted(&'a str),
}

A value for a media type parameter.

Variants

Value is in simple, unquoted form.

The inner string is guaranteed to be nonempty and free of surrounding whitespace but may contain internal whitespace.

Value is in quoted form.

The inner string contains the text inside the quotes, which may empty, may contain internal and surrounding whitespace, or may contain backslash-escaped characters that require further processing.

Methods

impl<'a> ParamValue<'a>
[src]

Retrieve the inner text value of the parameter.

Trait Implementations

impl<'a> Copy for ParamValue<'a>
[src]

impl<'a> Clone for ParamValue<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Eq for ParamValue<'a>
[src]

impl<'a> PartialEq for ParamValue<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> Debug for ParamValue<'a>
[src]

Formats the value using the given formatter.

impl<'a> Hash for ParamValue<'a>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more