Trait stun_types::attribute::AttributeFromRaw

source ·
pub trait AttributeFromRaw<E>: Attribute + for<'a> TryFrom<&'a RawAttribute<'a>, Error = E> {
    // Required method
    fn from_raw(raw: &RawAttribute<'_>) -> Result<Self, E>
       where Self: Sized;
}
Expand description

Automatically implemented trait for converting to a concrete Attribute from a RawAttribute

Required Methods§

source

fn from_raw(raw: &RawAttribute<'_>) -> Result<Self, E>
where Self: Sized,

Convert an Attribute from a RawAttribute

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<E, T: Attribute + for<'a> TryFrom<&'a RawAttribute<'a>, Error = E>> AttributeFromRaw<E> for T