Struct alpm::AlpmListMut

source ·
pub struct AlpmListMut<'a, T>
where for<'b> T: IntoAlpmListItem<'a, 'b>,
{ /* private fields */ }

Implementations§

source§

impl<'a, T> AlpmListMut<'a, T>
where for<'b> T: IntoAlpmListItem<'a, 'b> + Push<'a> + AsAlpmListItemPtr<'a>,

source

pub fn push(&mut self, t: T)

source§

impl<'a> AlpmListMut<'a, String>

source

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

source§

impl<'a, T> AlpmListMut<'a, T>
where for<'b> T: IntoAlpmListItem<'a, 'b>,

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 remove_list(&mut self, n: usize) -> AlpmListMut<'a, T>

source

pub fn as_list(&self) -> AlpmList<'a, T>

source§

impl<'a, T> AlpmListMut<'a, T>
where for<'b> T: IntoAlpmListItem<'a, 'b>,

source

pub fn new(handle: &'a Alpm) -> AlpmListMut<'a, T>

Methods from Deref<Target = AlpmList<'a, T>>§

source

pub fn update(&self, force: bool) -> Result<bool>

source

pub fn find_satisfier<S: Into<Vec<u8>>>(&self, dep: S) -> Option<Package<'a>>

source

pub fn find_satisfier<S: Into<Vec<u8>>>(&self, dep: S) -> Option<Package<'a>>

source

pub fn len(&self) -> usize

source

pub fn is_empty(&self) -> bool

source

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

source

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

source

pub fn iter(&'b self) -> Iter<'a, 'b, T>

source

pub fn as_str<'b>(&'b self) -> AlpmList<'a, &'b str>

source

pub fn to_list_mut(&self) -> AlpmListMut<'a, T>

Trait Implementations§

source§

impl<'a, T> Debug for AlpmListMut<'a, T>
where for<'b> T: IntoAlpmListItem<'a, 'b>,

source§

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

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

impl<'a, T> Deref for AlpmListMut<'a, T>
where for<'b> T: IntoAlpmListItem<'a, 'b>,

§

type Target = AlpmList<'a, T>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<'a, T> Drop for AlpmListMut<'a, T>
where for<'b> T: IntoAlpmListItem<'a, 'b>,

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<'a, T> Extend<T> for AlpmListMut<'a, T>
where for<'b> T: IntoAlpmListItem<'a, 'b> + Push<'a>,

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<'a, 'b, T> IntoIterator for &'b AlpmListMut<'a, T>
where for<'c> T: IntoAlpmListItem<'a, 'c>,

§

type Item = <T as IntoAlpmListItem<'a, 'b>>::Borrow

The type of the elements being iterated over.
§

type IntoIter = Iter<'a, 'b, T>

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

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for AlpmListMut<'a, T>
where for<'b> T: IntoAlpmListItem<'a, 'b>,

§

type Item = T

The type of the elements being iterated over.
§

type IntoIter = IntoIterMut<'a, T>

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

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoRawAlpmList<'a, T> for &AlpmListMut<'a, T>
where for<'b> T: IntoAlpmListItem<'a, 'b> + AsAlpmListItemPtr<'a>,

Auto Trait Implementations§

§

impl<'a, T> !RefUnwindSafe for AlpmListMut<'a, T>

§

impl<'a, T> !Send for AlpmListMut<'a, T>

§

impl<'a, T> !Sync for AlpmListMut<'a, T>

§

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

§

impl<'a, T> !UnwindSafe for AlpmListMut<'a, T>

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.