pub unsafe trait Attribute: Sized {
const TYPE: AttributeType;
// Provided methods
fn get_type() -> AttributeType { ... }
fn is_supported<C>(caps: &C) -> bool
where C: CapabilitiesSource + ?Sized { ... }
}
Expand description
Trait for types that can be used as vertex attributes.
Required Associated Constants§
sourceconst TYPE: AttributeType
const TYPE: AttributeType
The type of data.
Provided Methods§
sourcefn get_type() -> AttributeType
fn get_type() -> AttributeType
Get the type of data.
sourcefn is_supported<C>(caps: &C) -> boolwhere
C: CapabilitiesSource + ?Sized,
fn is_supported<C>(caps: &C) -> boolwhere
C: CapabilitiesSource + ?Sized,
Returns true if the backend supports this type of attribute.
Object Safety§
This trait is not object safe.