pub struct StringAttr(/* private fields */);
Implementations§
Source§impl StringAttr
impl StringAttr
pub fn get(&self, part_id: i32) -> Result<StringArray>
pub fn get_async(&self, part_id: i32) -> Result<AsyncAttribResult<StringHandle>>
pub fn set(&self, part_id: i32, values: &[impl AsRef<CStr>]) -> Result<()>
pub fn set_async( &self, part_id: i32, values: &[impl AsRef<CStr>], ) -> Result<JobId>
Sourcepub fn set_unique(&self, part: i32, value: &CStr) -> Result<()>
pub fn set_unique(&self, part: i32, value: &CStr) -> Result<()>
Set multiple attribute data to the same value. value length must be less or equal to attribute tuple size.
Sourcepub fn set_unique_async(&self, part: i32, value: &CStr) -> Result<JobId>
pub fn set_unique_async(&self, part: i32, value: &CStr) -> Result<JobId>
Set multiple attribute string data to the same unique value asynchronously.
Sourcepub fn set_indexed(
&self,
part_id: i32,
values: &[impl AsRef<CStr>],
indices: &[i32],
) -> Result<()>
pub fn set_indexed( &self, part_id: i32, values: &[impl AsRef<CStr>], indices: &[i32], ) -> Result<()>
Set attribute string data by index.
pub fn set_indexed_async( &self, part_id: i32, values: &[impl AsRef<CStr>], indices: &[i32], ) -> Result<JobId>
Auto Trait Implementations§
impl Freeze for StringAttr
impl !RefUnwindSafe for StringAttr
impl Send for StringAttr
impl Sync for StringAttr
impl Unpin for StringAttr
impl !UnwindSafe for StringAttr
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