#[repr(C)]pub struct ArkUI_AttributeItem {
pub value: *const ArkUI_NumberValue,
pub size: i32,
pub string: *const c_char,
pub object: *mut c_void,
}Available on crate feature
api-12 only.Expand description
Defines the general input parameter structure of the [setAttribute] function. The property
setting interfaces can utilize the member variables within it to store data of specific parameter types.
Available since API-level: 12
Fields§
§value: *const ArkUI_NumberValueA number array, used to store parameters of the number array type.
size: i32The size of the number array, used together with the variable value, indicating the length of the value array.
string: *const c_charString type, used to store parameters of the string type.
object: *mut c_voidObject type, used to store parameters of the object type.
Trait Implementations§
Source§impl Clone for ArkUI_AttributeItem
impl Clone for ArkUI_AttributeItem
Source§fn clone(&self) -> ArkUI_AttributeItem
fn clone(&self) -> ArkUI_AttributeItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArkUI_AttributeItem
impl Debug for ArkUI_AttributeItem
impl Copy for ArkUI_AttributeItem
Auto Trait Implementations§
impl Freeze for ArkUI_AttributeItem
impl RefUnwindSafe for ArkUI_AttributeItem
impl !Send for ArkUI_AttributeItem
impl !Sync for ArkUI_AttributeItem
impl Unpin for ArkUI_AttributeItem
impl UnsafeUnpin for ArkUI_AttributeItem
impl UnwindSafe for ArkUI_AttributeItem
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