pub struct ListItem { /* private fields */ }
Expand description
An eagerly constructed list item for vectors created from a ListIterator
.
For ThreadSafeListIterator
it can sometimes be quicker to eagerly convert
it to a Vec<ListItem>
using ThreadSafeListIterator.to_vec()
and then
iterate over the resulting vector. The conversion happens on the main thread
and is done all at once.
Implementations§
Trait Implementations§
Source§impl From<&ListIterator> for ListItem
impl From<&ListIterator> for ListItem
Source§fn from(list: &ListIterator) -> Self
fn from(list: &ListIterator) -> Self
Constructs a list item from the iterator reference at its current position.
Source§impl From<ListIterator> for ListItem
impl From<ListIterator> for ListItem
Source§fn from(list: ListIterator) -> Self
fn from(list: ListIterator) -> Self
Consructs a list item from the given ListIterator
instance and
consumes it. The item is constructed from the fields retrieved from
the iterator at its current position.
Source§impl Index<&str> for ListItem
impl Index<&str> for ListItem
Source§fn index(&self, i: &str) -> &Self::Output
fn index(&self, i: &str) -> &Self::Output
The ListItem
class supports indexing operations using the name of
the field. This will panic if the field doesn’t exist. Alternatively,
ListItem.get()
can be used, which returns an option.
Source§type Output = FieldValue
type Output = FieldValue
The returned type after indexing.
impl Send for ListItem
impl Sync for ListItem
Auto Trait Implementations§
impl Freeze for ListItem
impl RefUnwindSafe for ListItem
impl Unpin for ListItem
impl UnwindSafe for ListItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more