Struct panoramix::elements::EmptyElement[][src]

pub struct EmptyElement<CpEvent = NoEvent, CpState = ()>(pub PhantomData<CpState>, pub PhantomData<CpEvent>);

A placeholder element.

This does not represent a blank area or a zero-sized widget. Rather, this represents the absence of a widget. So, for instance:

Column!(
    Label::new("Hello world!"),
    EmptyElement::new(),
)

is equivalent to:

Column!(
    Label::new("Hello world!"),
)

in terms of layout computation and everything else.

Events

Doesn’t emit events.

Implementations

impl<CpEvent, CpState> EmptyElement<CpEvent, CpState>[src]

pub fn new() -> EmptyElement<CpEvent, CpState>[src]

Trait Implementations

impl<CpEvent: Clone, CpState: Clone> Clone for EmptyElement<CpEvent, CpState>[src]

impl<CpEvent, CpState> Debug for EmptyElement<CpEvent, CpState>[src]

impl<CpEvent, CpState> Default for EmptyElement<CpEvent, CpState>[src]

impl<CpEvent, CpState> Element<CpEvent, CpState> for EmptyElement<CpEvent, CpState>[src]

type Event = NoEvent

The type of events this element can raise. Read more

type AggregateChildrenState = ()

type BuildOutput = EmptyElementData<CpEvent, CpState>

impl<CpEvent: Eq, CpState: Eq> Eq for EmptyElement<CpEvent, CpState>[src]

impl<CpEvent: Hash, CpState: Hash> Hash for EmptyElement<CpEvent, CpState>[src]

impl<CpEvent: PartialEq, CpState: PartialEq> PartialEq<EmptyElement<CpEvent, CpState>> for EmptyElement<CpEvent, CpState>[src]

impl<CpEvent, CpState> StructuralEq for EmptyElement<CpEvent, CpState>[src]

impl<CpEvent, CpState> StructuralPartialEq for EmptyElement<CpEvent, CpState>[src]

Auto Trait Implementations

impl<CpEvent, CpState> RefUnwindSafe for EmptyElement<CpEvent, CpState> where
    CpEvent: RefUnwindSafe,
    CpState: RefUnwindSafe

impl<CpEvent, CpState> Send for EmptyElement<CpEvent, CpState> where
    CpEvent: Send,
    CpState: Send

impl<CpEvent, CpState> Sync for EmptyElement<CpEvent, CpState> where
    CpEvent: Sync,
    CpState: Sync

impl<CpEvent, CpState> Unpin for EmptyElement<CpEvent, CpState> where
    CpEvent: Unpin,
    CpState: Unpin

impl<CpEvent, CpState> UnwindSafe for EmptyElement<CpEvent, CpState> where
    CpEvent: UnwindSafe,
    CpState: UnwindSafe

Blanket Implementations

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

impl<T> AnyEq for T where
    T: Any + PartialEq<T>, 

impl<T> AnyState for T where
    T: Clone + Default + Debug + PartialEq<T> + 'static, 
[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> Instrument for T[src]

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

impl<T> RoundFrom<T> for T

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

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.