pub trait TryFromIntAttributeValue: Sized + TryFrom<u32> {
// Provided methods
fn try_from_attribute_value(v: AttributeValue) -> Option<Self> { ... }
fn try_from_attribute_float_value(v: f32) -> Option<Self> { ... }
}
Expand description
Backwards conversion for attributes associated with an integer value.
Provided Methods§
Sourcefn try_from_attribute_value(v: AttributeValue) -> Option<Self>
fn try_from_attribute_value(v: AttributeValue) -> Option<Self>
Attempts conversion from an attribute value.
Sourcefn try_from_attribute_float_value(v: f32) -> Option<Self>
fn try_from_attribute_float_value(v: f32) -> Option<Self>
Attempts conversion from an attribute float value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.