[][src]Trait alpm_rs::list::AlpmListItem

pub trait AlpmListItem<T> {
    fn new(data_ptr: *mut c_void) -> Self;
fn to_ptr(&self) -> *mut c_void; }

Trait to pass each item into a custom struct's constructor. Workaround to avoid copying data and loosing the alpm_list_t data pointer

Required methods

fn new(data_ptr: *mut c_void) -> Self

fn to_ptr(&self) -> *mut c_void

Loading content...

Implementors

impl AlpmListItem<AlpmDB> for AlpmDB[src]

impl AlpmListItem<DepMissing> for DepMissing[src]

impl AlpmListItem<AnyListItem> for AnyListItem[src]

impl AlpmListItem<StringItem> for StringItem[src]

impl AlpmListItem<Package> for Package[src]

Loading content...