[][src]Enum azul_layout::RectContent

pub enum RectContent<T: GetTextLayout> {
    Image(usizeusize),
    Text(T),
}

Variants

Image(usizeusize)
Text(T)

Gives access an anonymous struct which, given the text bounds, can be used to calculate the text dimensions

Implementations

impl<T: GetTextLayout> RectContent<T>[src]

pub fn is_text(&self) -> bool[src]

pub fn is_image(&self) -> bool[src]

Trait Implementations

impl<T: Clone + GetTextLayout> Clone for RectContent<T>[src]

impl<T: Debug + GetTextLayout> Debug for RectContent<T>[src]

impl<T: PartialEq + GetTextLayout> PartialEq<RectContent<T>> for RectContent<T>[src]

impl<T: GetTextLayout> StructuralPartialEq for RectContent<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for RectContent<T> where
    T: RefUnwindSafe

impl<T> Send for RectContent<T> where
    T: Send

impl<T> Sync for RectContent<T> where
    T: Sync

impl<T> Unpin for RectContent<T> where
    T: Unpin

impl<T> UnwindSafe for RectContent<T> where
    T: UnwindSafe

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> 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.