AttributeListType

Type Alias AttributeListType 

Source
pub type AttributeListType<'a> = ListType<'a, KeyValue<'a>>;
Expand description

Type alias for a list of attributes.

Aliased Type§

pub enum AttributeListType<'a> {
    Borrowed(&'a [KeyValue<'a>]),
    Owned(Vec<KeyValue<'a>>),
}

Variants§

§1.0.0

Borrowed(&'a [KeyValue<'a>])

Borrowed data.

§1.0.0

Owned(Vec<KeyValue<'a>>)

Owned data.

Trait Implementations§

Source§

impl ToStatic for AttributeListType<'_>

Available on crate feature alloc only.
Source§

type Static = Cow<'static, [KeyValue<'static>]>

The same type but with ’static lifetime and owned data.
Source§

fn to_static(&self) -> Self::Static

Converts this type to the equivalent type with ’static lifetime. Read more