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§
sourcefn from_raw(raw: &RawAttribute<'_>) -> Result<Self, E>where
Self: Sized,
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.