pub enum AnyAttribute {
Show 18 variants
Int(Attribute<i32, Fixed>),
Int64(Attribute<i64, Fixed>),
Float(Attribute<f32, Fixed>),
Float64(Attribute<f64, Fixed>),
String(StringAttribute<Fixed>),
Uint8(Attribute<u8, Fixed>),
Int8(Attribute<i8, Fixed>),
Int16(Attribute<i16, Fixed>),
IntArray(Attribute<i32, Jagged>),
Int64Array(Attribute<i64, Jagged>),
FloatArray(Attribute<f32, Jagged>),
Float64Array(Attribute<f64, Jagged>),
StringArray(StringAttribute<Jagged>),
Uint8Array(Attribute<u8, Jagged>),
Int8Array(Attribute<i8, Jagged>),
Int16Array(Attribute<i16, Jagged>),
Dictionary(DictionaryAttribute<Fixed>),
DictionaryArray(DictionaryAttribute<Jagged>),
}Expand description
Exhaustive runtime representation of every supported HAPI attribute storage.
Returned by crate::geometry::Geometry::get_attribute when the caller
does not know the storage in advance. Match a variant to obtain its typed
handle, or use the common identity and deletion methods directly.
Variants§
Int(Attribute<i32, Fixed>)
A fixed i32 attribute.
Int64(Attribute<i64, Fixed>)
A fixed i64 attribute.
Float(Attribute<f32, Fixed>)
A fixed f32 attribute.
Float64(Attribute<f64, Fixed>)
A fixed f64 attribute.
String(StringAttribute<Fixed>)
A fixed string attribute.
Uint8(Attribute<u8, Fixed>)
A fixed u8 attribute.
Int8(Attribute<i8, Fixed>)
A fixed i8 attribute.
Int16(Attribute<i16, Fixed>)
A fixed i16 attribute.
IntArray(Attribute<i32, Jagged>)
A jagged i32 array attribute.
Int64Array(Attribute<i64, Jagged>)
A jagged i64 array attribute.
FloatArray(Attribute<f32, Jagged>)
A jagged f32 array attribute.
Float64Array(Attribute<f64, Jagged>)
A jagged f64 array attribute.
StringArray(StringAttribute<Jagged>)
A jagged string array attribute.
Uint8Array(Attribute<u8, Jagged>)
A jagged u8 array attribute.
Int8Array(Attribute<i8, Jagged>)
A jagged i8 array attribute.
Int16Array(Attribute<i16, Jagged>)
A jagged i16 array attribute.
Dictionary(DictionaryAttribute<Fixed>)
A fixed JSON dictionary attribute.
DictionaryArray(DictionaryAttribute<Jagged>)
A jagged JSON dictionary array attribute.
Implementations§
Source§impl AnyAttribute
impl AnyAttribute
Sourcepub fn name(&self) -> Cow<'_, str>
pub fn name(&self) -> Cow<'_, str>
Returns the attribute name, replacing invalid UTF-8 if necessary.
Sourcepub fn info(&self) -> &AttributeInfo
pub fn info(&self) -> &AttributeInfo
Returns the currently cached metadata.
Sourcepub fn storage(&self) -> StorageType
pub fn storage(&self) -> StorageType
Returns the HAPI storage represented by the enum variant.
Sourcepub fn owner(&self) -> AttributeOwner
pub fn owner(&self) -> AttributeOwner
Returns the element owner of this attribute.