#[repr(transparent)]pub struct ArkUI_LengthMetricUnit(pub c_int);Available on crate feature
api-12 only.Expand description
Enumerates the component units.
Available since API-level: 12
Tuple Fields§
§0: c_intImplementations§
Source§impl ArkUI_LengthMetricUnit
impl ArkUI_LengthMetricUnit
Sourcepub const ARKUI_LENGTH_METRIC_UNIT_DEFAULT: ArkUI_LengthMetricUnit
pub const ARKUI_LENGTH_METRIC_UNIT_DEFAULT: ArkUI_LengthMetricUnit
Default, which is fp for fonts and vp for non-fonts.
Source§impl ArkUI_LengthMetricUnit
impl ArkUI_LengthMetricUnit
Sourcepub const ARKUI_LENGTH_METRIC_UNIT_PX: ArkUI_LengthMetricUnit
pub const ARKUI_LENGTH_METRIC_UNIT_PX: ArkUI_LengthMetricUnit
px.
Trait Implementations§
Source§impl Clone for ArkUI_LengthMetricUnit
impl Clone for ArkUI_LengthMetricUnit
Source§fn clone(&self) -> ArkUI_LengthMetricUnit
fn clone(&self) -> ArkUI_LengthMetricUnit
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Hash for ArkUI_LengthMetricUnit
impl Hash for ArkUI_LengthMetricUnit
Source§impl PartialEq for ArkUI_LengthMetricUnit
impl PartialEq for ArkUI_LengthMetricUnit
impl Copy for ArkUI_LengthMetricUnit
impl Eq for ArkUI_LengthMetricUnit
impl StructuralPartialEq for ArkUI_LengthMetricUnit
Auto Trait Implementations§
impl Freeze for ArkUI_LengthMetricUnit
impl RefUnwindSafe for ArkUI_LengthMetricUnit
impl Send for ArkUI_LengthMetricUnit
impl Sync for ArkUI_LengthMetricUnit
impl Unpin for ArkUI_LengthMetricUnit
impl UnwindSafe for ArkUI_LengthMetricUnit
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