pub struct ListEntry<T>(_);
Expand description

A pointer to an element from a List

Note that this cannot be used directly to get access to the value in the list. Instead, one must use either one of the methods use_w or use_rw.

ListEntry implements PartialEq AS A POINTER ONLY. This is so that the properties of a component depend only on which list entry is referenced, and not on the value.

Implementations

Get a write-only pointer to the element.

This is generally how an entry is accessed from the component which owns its List. If the entry was passed down from a parent component, then you generally want to call use_w or use_rw instead.

Get a write pointer to the element as a hook.

This is the expected way to get write-only access to an entry when it is passed down from a parent component. If you need to access an entry in the component which owns the list it belongs to, then you generally need to use share instead.

Get a read-write pointer to the element.

Scope cx will be registered as needing update every time the referenced value changes.

This is the expected ways to get read/write access an entry when it is passed down from a parent component. If you need to access an entry in the component which owns the list it belongs to, then you generally need to use share instead.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.