Struct hexchat_api::ListItem
source · 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.
impl Send for ListItem
impl Sync for ListItem
Auto Trait Implementations§
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