AlpmListMut

Struct AlpmListMut 

Source
pub struct AlpmListMut<T: IntoAlpmListItem> { /* private fields */ }

Implementations§

Source§

impl<'a, T: IntoAlpmListItem + BorrowAlpmListItem<'a>> AlpmListMut<T>

Source

pub fn list(&self) -> AlpmList<'_, T::Borrow>

Source§

impl<T: IntoAlpmListItem> AlpmListMut<T>

Source

pub fn new() -> AlpmListMut<T>

Source

pub fn len(&self) -> usize

Source

pub fn retain<F>(&mut self, f: F)
where F: FnMut(&T) -> bool,

Source

pub fn remove(&mut self, n: usize) -> Option<T>

Source

pub fn pop(&mut self) -> Option<T>

Source§

impl<T: IntoAlpmListItem> AlpmListMut<T>

Source

pub fn push<U: IntoAlpmListPtr<Output = T>>(&mut self, t: U)

Source§

impl AlpmListMut<String>

Source

pub fn push_str(&mut self, s: &str)

Source§

impl<T: IntoAlpmListItem> AlpmListMut<T>

Source

pub fn is_empty(&self) -> bool

Source§

impl<'a, T: IntoAlpmListItem + BorrowAlpmListItem<'a>> AlpmListMut<T>

Source

pub fn first(&self) -> Option<T::Borrow>

Source

pub fn last(&self) -> Option<T::Borrow>

Source

pub fn iter(&self) -> Iter<'_, T::Borrow>

Trait Implementations§

Source§

impl<'a, T: IntoAlpmListItem + BorrowAlpmListItem<'a>> Debug for AlpmListMut<T>
where T::Borrow: Debug,

Source§

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

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

impl<T: IntoAlpmListItem> Default for AlpmListMut<T>

Source§

fn default() -> Self

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

impl<T: IntoAlpmListItem> Drop for AlpmListMut<T>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<T: IntoAlpmListPtr> Extend<T> for AlpmListMut<T::Output>

Source§

fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)

Extends a collection with the contents of an iterator. Read more
Source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
Source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
Source§

impl<T: IntoAlpmListPtr> FromIterator<T> for AlpmListMut<T::Output>

Source§

fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self

Creates a value from an iterator. Read more
Source§

impl<'a, T> IntoIterator for &'a AlpmListMut<T>
where T: BorrowAlpmListItem<'a> + IntoAlpmListItem,

Source§

type IntoIter = Iter<'a, <T as BorrowAlpmListItem<'a>>::Borrow>

Which kind of iterator are we turning this into?
Source§

type Item = <T as BorrowAlpmListItem<'a>>::Borrow

The type of the elements being iterated over.
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<T: IntoAlpmListItem> IntoIterator for AlpmListMut<T>

Source§

type IntoIter = IntoIter<T>

Which kind of iterator are we turning this into?
Source§

type Item = T

The type of the elements being iterated over.
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'b, T: IntoAlpmListItem + BorrowAlpmListItem<'b>> AsAlpmList<<T as BorrowAlpmListItem<'b>>::Borrow> for &AlpmListMut<T>

Source§

impl<'b, T: IntoAlpmListItem + BorrowAlpmListItem<'b>> AsAlpmList<<T as BorrowAlpmListItem<'b>>::Borrow> for AlpmListMut<T>

Source§

impl<T: IntoAlpmListItem + Send> Send for AlpmListMut<T>

Source§

impl<T: IntoAlpmListItem + Sync> Sync for AlpmListMut<T>

Auto Trait Implementations§

§

impl<T> Freeze for AlpmListMut<T>

§

impl<T> RefUnwindSafe for AlpmListMut<T>
where T: RefUnwindSafe,

§

impl<T> Unpin for AlpmListMut<T>
where T: Unpin,

§

impl<T> UnwindSafe for AlpmListMut<T>
where T: 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> 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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, 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.