#[repr(C)]
pub struct _alpm_depend_t { pub name: *mut c_char, pub version: *mut c_char, pub desc: *mut c_char, pub name_hash: c_ulong, pub mod_: alpm_depmod_t, }
Expand description

The basic dependency type.

This type is used throughout libalpm, not just for dependencies but also conflicts and providers.

Fields

name: *mut c_char

Name of the provider to satisfy this dependency

version: *mut c_char

Version of the provider to match against (optional)

desc: *mut c_char

A description of why this dependency is needed (optional)

name_hash: c_ulong

A hash of name (used internally to speed up conflict checks)

mod_: alpm_depmod_t

How the version should match against the provider

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.