Struct alpm::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> 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,

§

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

Which kind of iterator are we turning this into?
§

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>

§

type IntoIter = IntoIter<T>

Which kind of iterator are we turning this into?
§

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

§

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

§

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.