pub enum LengthMetricUnit {
Default,
Px,
Vp,
Fp,
}Expand description
Length units supported by metric-based APIs.
Variants§
Implementations§
Source§impl LengthMetricUnit
impl LengthMetricUnit
pub fn try_from_raw(attr: ArkUI_LengthMetricUnit) -> Option<Self>
Trait Implementations§
Source§impl Clone for LengthMetricUnit
impl Clone for LengthMetricUnit
Source§fn clone(&self) -> LengthMetricUnit
fn clone(&self) -> LengthMetricUnit
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 moreimpl Copy for LengthMetricUnit
Source§impl Debug for LengthMetricUnit
impl Debug for LengthMetricUnit
impl Eq for LengthMetricUnit
Source§impl From<LengthMetricUnit> for ArkUI_LengthMetricUnit
impl From<LengthMetricUnit> for ArkUI_LengthMetricUnit
Source§fn from(attr: LengthMetricUnit) -> Self
fn from(attr: LengthMetricUnit) -> Self
Converts to this type from the input type.
Source§impl From<i32> for LengthMetricUnit
impl From<i32> for LengthMetricUnit
Source§fn from(attr: ArkUI_LengthMetricUnit) -> Self
fn from(attr: ArkUI_LengthMetricUnit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LengthMetricUnit
impl PartialEq for LengthMetricUnit
impl StructuralPartialEq for LengthMetricUnit
Auto Trait Implementations§
impl Freeze for LengthMetricUnit
impl RefUnwindSafe for LengthMetricUnit
impl Send for LengthMetricUnit
impl Sync for LengthMetricUnit
impl Unpin for LengthMetricUnit
impl UnsafeUnpin for LengthMetricUnit
impl UnwindSafe for 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