pub struct UseListHandle<T> { /* private fields */ }
Expand description
State handle for the use_list
hook.
Implementations§
Source§impl<T> UseListHandle<T>
impl<T> UseListHandle<T>
Sourcepub fn remove(&self, index: usize) -> T
pub fn remove(&self, index: usize) -> T
Removes and returns the element at position index within the list, shifting all elements after it to the left.
§Panics
Panics if index is out of bounds.
Sourcepub fn pop(&self) -> Option<T>
pub fn pop(&self) -> Option<T>
Removes the last element from a vector and returns it, or None if it is empty.
Sourcepub fn append(&self, other: &mut Vec<T>)
pub fn append(&self, other: &mut Vec<T>)
Moves all the elements of other into Self, leaving other empty.
Trait Implementations§
Source§impl<T> Clone for UseListHandle<T>
impl<T> Clone for UseListHandle<T>
Source§impl<T> PartialEq for UseListHandle<T>where
T: PartialEq,
impl<T> PartialEq for UseListHandle<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Freeze for UseListHandle<T>
impl<T> !RefUnwindSafe for UseListHandle<T>
impl<T> !Send for UseListHandle<T>
impl<T> !Sync for UseListHandle<T>
impl<T> Unpin for UseListHandle<T>
impl<T> !UnwindSafe for UseListHandle<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.