[][src]Struct rbx_types::UDim2

pub struct UDim2 {
    pub x: UDim,
    pub y: UDim,
}

Standard 2D unit for measuring UI given as scale, a fraction of the container's size and offset, display-indepdendent pixels.

See Also

Fields

x: UDimy: UDim

Methods

impl UDim2[src]

pub fn new(x: UDim, y: UDim) -> Self[src]

Trait Implementations

impl Clone for UDim2[src]

impl Copy for UDim2[src]

impl Debug for UDim2[src]

impl From<UDim2> for Variant[src]

impl PartialEq<UDim2> for UDim2[src]

impl StructuralPartialEq for UDim2[src]

Auto Trait Implementations

impl RefUnwindSafe for UDim2

impl Send for UDim2

impl Sync for UDim2

impl Unpin for UDim2

impl UnwindSafe for UDim2

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,