panoramix::elements::backend

Struct ComponentOutput

Source
pub struct ComponentOutput<ChildCpEvent, ChildCpState: Clone + Default + Debug + PartialEq, Child: VirtualDom<ChildCpEvent, ChildCpState>, ParentCpEvent, ParentCpState> { /* private fields */ }

Trait Implementations§

Source§

impl<ChildCpEvent: Clone, ChildCpState: Clone + Clone + Default + Debug + PartialEq, Child: Clone + VirtualDom<ChildCpEvent, ChildCpState>, ParentCpEvent: Clone, ParentCpState: Clone> Clone for ComponentOutput<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState>

Source§

fn clone( &self, ) -> ComponentOutput<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<ChildCpEvent, ChildCpState: Clone + Default + Debug + PartialEq, Child: VirtualDom<ChildCpEvent, ChildCpState>, ParentCpEvent, ParentCpState> Debug for ComponentOutput<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<ChildCpEvent, ChildCpState: Clone + Default + Debug + PartialEq, Child, ParentCpEvent, ParentCpState> Default for ComponentOutput<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState>
where Child: Default + VirtualDom<ChildCpEvent, ChildCpState>,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<ChildCpEvent: Hash, ChildCpState: Hash + Clone + Default + Debug + PartialEq, Child: Hash + VirtualDom<ChildCpEvent, ChildCpState>, ParentCpEvent: Hash, ParentCpState: Hash> Hash for ComponentOutput<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<ChildCpEvent: PartialEq, ChildCpState: PartialEq + Clone + Default + Debug + PartialEq, Child: PartialEq + VirtualDom<ChildCpEvent, ChildCpState>, ParentCpEvent: PartialEq, ParentCpState: PartialEq> PartialEq for ComponentOutput<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState>

Source§

fn eq( &self, other: &ComponentOutput<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState>, ) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<ChildCpEvent, ChildCpState: Clone + Default + Debug + PartialEq, Child: VirtualDom<ChildCpEvent, ChildCpState>, ParentCpEvent, ParentCpState> VirtualDom<ParentCpEvent, ParentCpState> for ComponentOutput<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState>


Source§

type Event = ChildCpEvent

Source§

type AggregateChildrenState = (ChildCpState, <Child as VirtualDom<ChildCpEvent, ChildCpState>>::AggregateChildrenState)

Source§

type TargetWidgetSeq = <Child as VirtualDom<ChildCpEvent, ChildCpState>>::TargetWidgetSeq

Source§

fn init_tree(&self) -> Child::TargetWidgetSeq

Source§

fn reconcile( &self, other: &Self, widget_seq: &mut Child::TargetWidgetSeq, ctx: &mut ReconcileCtx<'_, '_, '_, '_, '_>, )

Source§

fn process_local_event( &self, _component_state: &mut ParentCpState, children_state: &mut Self::AggregateChildrenState, widget_seq: &mut Child::TargetWidgetSeq, cx: &mut GlobalEventCx<'_>, ) -> Option<Self::Event>

Source§

fn update_value(&mut self, other: Self)
where Self: Sized,

Source§

fn process_event( &self, component_state: &mut CpState, children_state: &mut Self::AggregateChildrenState, widget_seq: &mut Self::TargetWidgetSeq, cx: &mut GlobalEventCx<'_>, ) -> Option<CpEvent>

Source§

impl<ChildCpEvent: Eq, ChildCpState: Eq + Clone + Default + Debug + PartialEq, Child: Eq + VirtualDom<ChildCpEvent, ChildCpState>, ParentCpEvent: Eq, ParentCpState: Eq> Eq for ComponentOutput<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState>

Source§

impl<ChildCpEvent, ChildCpState: Clone + Default + Debug + PartialEq, Child: VirtualDom<ChildCpEvent, ChildCpState>, ParentCpEvent, ParentCpState> StructuralPartialEq for ComponentOutput<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState>

Auto Trait Implementations§

§

impl<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState> Freeze for ComponentOutput<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState>
where Child: Freeze,

§

impl<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState> RefUnwindSafe for ComponentOutput<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState>
where Child: RefUnwindSafe, ParentCpEvent: RefUnwindSafe, ParentCpState: RefUnwindSafe, ChildCpEvent: RefUnwindSafe, ChildCpState: RefUnwindSafe,

§

impl<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState> Send for ComponentOutput<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState>
where Child: Send, ParentCpEvent: Send, ParentCpState: Send, ChildCpEvent: Send, ChildCpState: Send,

§

impl<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState> Sync for ComponentOutput<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState>
where Child: Sync, ParentCpEvent: Sync, ParentCpState: Sync, ChildCpEvent: Sync, ChildCpState: Sync,

§

impl<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState> Unpin for ComponentOutput<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState>
where Child: Unpin, ParentCpEvent: Unpin, ParentCpState: Unpin, ChildCpEvent: Unpin, ChildCpState: Unpin,

§

impl<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState> UnwindSafe for ComponentOutput<ChildCpEvent, ChildCpState, Child, ParentCpEvent, ParentCpState>
where Child: UnwindSafe, ParentCpEvent: UnwindSafe, ParentCpState: UnwindSafe, ChildCpEvent: UnwindSafe, ChildCpState: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn equals(&self, other: &(dyn Any + 'static)) -> bool

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

impl<T> AnyState for T
where T: Clone + Default + Debug + PartialEq + 'static,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

fn as_mut_any(&mut self) -> &mut (dyn Any + 'static)

Source§

fn dyn_clone(&self) -> Box<dyn AnyState>

Source§

fn dyn_eq(&self, other: &Box<dyn AnyState>) -> bool

Source§

fn print_type(&self)

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> RoundFrom<T> for T

Source§

fn round_from(x: T) -> T

Source§

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

Source§

fn round_into(self) -> U

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more