pub struct NumericAttr<T: AttribAccess>(/* private fields */);
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_async_into(&self, part_id: i32, buffer: &mut Vec<T>) -> Result<i32>
pub fn read_async_into(&self, part_id: i32, buffer: &mut Vec<T>) -> Result<i32>
Start filling a given buffer asynchronously and return a job id. It’s important to keep the buffer alive until the job is complete
pub fn get_async(&self, part_id: i32) -> Result<AsyncAttribResult<T>>
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.
pub fn set(&self, part_id: i32, values: &[T]) -> Result<()>
Auto Trait Implementations§
impl<T> Freeze for NumericAttr<T>
impl<T> !RefUnwindSafe for NumericAttr<T>
impl<T> Send for NumericAttr<T>
impl<T> Sync for NumericAttr<T>where
T: Sync,
impl<T> Unpin for NumericAttr<T>where
T: Unpin,
impl<T> !UnwindSafe for NumericAttr<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more