Struct hapi_rs::attribute::NumericAttr
source · pub struct NumericAttr<T: AttribAccess>(_);
Implementations§
source§impl<T: AttribAccess> NumericAttr<T>
impl<T: AttribAccess> NumericAttr<T>
sourcepub fn get(&self, part_id: i32) -> Result<Vec<T>>
pub fn get(&self, part_id: i32) -> Result<Vec<T>>
Get attribute value. Allocates a new vector on every call
sourcepub fn read_into(&self, part_id: i32, buffer: &mut Vec<T>) -> Result<()>
pub fn read_into(&self, part_id: i32, buffer: &mut Vec<T>) -> Result<()>
Read the attribute data into a provided buffer. The buffer will be auto-resized from the attribute info.