Enum UiVal
pub enum UiVal {
Px(f32),
Percent(f32),
Auto,
}Expand description
Length units for UI elements
Variants§
Px(f32)
Fixed pixel length
Percent(f32)
Percentage relative to parent
Auto
Automatically defined size
Trait Implementations§
§impl<'__de, __Context> BorrowDecode<'__de, __Context> for UiVal
impl<'__de, __Context> BorrowDecode<'__de, __Context> for UiVal
§fn borrow_decode<__D>(decoder: &mut __D) -> Result<UiVal, DecodeError>where
__D: BorrowDecoder<'__de, Context = __Context>,
fn borrow_decode<__D>(decoder: &mut __D) -> Result<UiVal, DecodeError>where
__D: BorrowDecoder<'__de, Context = __Context>,
Attempt to decode this type with the given BorrowDecode.
§impl<'de> Deserialize<'de> for UiVal
impl<'de> Deserialize<'de> for UiVal
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UiVal, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UiVal, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for UiVal
impl Serialize for UiVal
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for UiVal
impl StructuralPartialEq for UiVal
Auto Trait Implementations§
impl Freeze for UiVal
impl RefUnwindSafe for UiVal
impl Send for UiVal
impl Sync for UiVal
impl Unpin for UiVal
impl UnsafeUnpin for UiVal
impl UnwindSafe for UiVal
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