#[non_exhaustive]pub enum ResourceValue {
Integer(u64),
Finite(FiniteValue),
}Expand description
Nonnegative integer or finite number used by semantic resource details.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Integer(u64)
An integer byte, count, depth, pixel, or work value.
Finite(FiniteValue)
A finite dimension or coordinate value.
Trait Implementations§
Source§impl Clone for ResourceValue
impl Clone for ResourceValue
impl Copy for ResourceValue
Source§impl Debug for ResourceValue
impl Debug for ResourceValue
Source§impl PartialEq for ResourceValue
impl PartialEq for ResourceValue
Source§impl Serialize for ResourceValue
impl Serialize for ResourceValue
impl StructuralPartialEq for ResourceValue
Auto Trait Implementations§
impl Freeze for ResourceValue
impl RefUnwindSafe for ResourceValue
impl Send for ResourceValue
impl Sync for ResourceValue
impl Unpin for ResourceValue
impl UnsafeUnpin for ResourceValue
impl UnwindSafe for ResourceValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.