pub struct UDim {
pub scale: f32,
pub offset: i32,
}
Expand description
Standard unit for measuring UI given as scale
, a fraction of the
container’s size and offset
, display-indepdendent pixels.
See Also
Fields§
§scale: f32
§offset: i32
Implementations§
Trait Implementations§
source§impl PartialEq for UDim
impl PartialEq for UDim
impl Copy for UDim
impl StructuralPartialEq for UDim
Auto Trait Implementations§
impl RefUnwindSafe for UDim
impl Send for UDim
impl Sync for UDim
impl Unpin for UDim
impl UnwindSafe for UDim
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