Enum thyme::WidthRelative[][src]

pub enum WidthRelative {
    Normal,
    Children,
    Parent,
}

What to compute the width of a widget relative to.

Variants

Normal

Width is equal to the x field of the widget’s size.

Children

Width is sized so that the widget’s inner width just encompasses all child widgets, plus the x field of the widget’s size. Note that any children of this Widget should not use Parent width if this is used.

Parent

Width is equal to the parent widget’s inner width plus the x field of the widget’s size.

Trait Implementations

impl Clone for WidthRelative[src]

impl Copy for WidthRelative[src]

impl Debug for WidthRelative[src]

impl Default for WidthRelative[src]

impl<'de> Deserialize<'de> for WidthRelative[src]

impl Eq for WidthRelative[src]

impl Hash for WidthRelative[src]

impl PartialEq<WidthRelative> for WidthRelative[src]

impl Serialize for WidthRelative[src]

impl StructuralEq for WidthRelative[src]

impl StructuralPartialEq for WidthRelative[src]

Auto Trait Implementations

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> CallHasher for T where
    T: Hash

impl<T> Content for T where
    T: Copy
[src]

type Owned = T

A type that holds a sized version of the content.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast<T> for T

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

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

impl<T> Serialize for T where
    T: Serialize + ?Sized
[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.

impl<T> Upcast<T> for T