Struct panoramix::elements::Flex[][src]

pub struct Flex<Child: Element<CpEvent, CpState>, CpEvent = NoEvent, CpState = ()> {
    pub axis: Axis,
    pub child: Child,
    pub flex: FlexParams,
    pub flex_container: FlexContainerParams,
    pub _comp_state: PhantomData<CpState>,
    pub _comp_event: PhantomData<CpEvent>,
}

Fields

axis: Axischild: Childflex: FlexParamsflex_container: FlexContainerParams_comp_state: PhantomData<CpState>_comp_event: PhantomData<CpEvent>

Implementations

impl<CpEvent, CpState, Child: Element<CpEvent, CpState>> Flex<Child, CpEvent, CpState>[src]

pub fn new(axis: Axis, child: Child) -> Self[src]

pub fn with_flex_params(self, flex_params: FlexParams) -> Self[src]

pub fn with_flex_container_params(
    self,
    flex_container: FlexContainerParams
) -> Self
[src]

Trait Implementations

impl<Child: Clone + Element<CpEvent, CpState>, CpEvent: Clone, CpState: Clone> Clone for Flex<Child, CpEvent, CpState>[src]

impl<Child: Element<CpEvent, CpState>, CpEvent, CpState> Debug for Flex<Child, CpEvent, CpState>[src]

impl<CpEvent, CpState, Child: Element<CpEvent, CpState>> Element<CpEvent, CpState> for Flex<Child, CpEvent, CpState>[src]

type Event = NoEvent

The type of events this element can raise. Read more

type AggregateChildrenState = Child::AggregateChildrenState

type BuildOutput = FlexData<Child::BuildOutput, CpEvent, CpState>

impl<Child: PartialEq + Element<CpEvent, CpState>, CpEvent: PartialEq, CpState: PartialEq> PartialEq<Flex<Child, CpEvent, CpState>> for Flex<Child, CpEvent, CpState>[src]

impl<Child: Element<CpEvent, CpState>, CpEvent, CpState> StructuralPartialEq for Flex<Child, CpEvent, CpState>[src]

Auto Trait Implementations

impl<Child, CpEvent, CpState> RefUnwindSafe for Flex<Child, CpEvent, CpState> where
    Child: RefUnwindSafe,
    CpEvent: RefUnwindSafe,
    CpState: RefUnwindSafe

impl<Child, CpEvent, CpState> Send for Flex<Child, CpEvent, CpState> where
    Child: Send,
    CpEvent: Send,
    CpState: Send

impl<Child, CpEvent, CpState> Sync for Flex<Child, CpEvent, CpState> where
    Child: Sync,
    CpEvent: Sync,
    CpState: Sync

impl<Child, CpEvent, CpState> Unpin for Flex<Child, CpEvent, CpState> where
    Child: Unpin,
    CpEvent: Unpin,
    CpState: Unpin

impl<Child, CpEvent, CpState> UnwindSafe for Flex<Child, CpEvent, CpState> where
    Child: UnwindSafe,
    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> 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.