pub struct Provider<'a> { /* private fields */ }
Expand description
A Provider provides a Version and/or Package.
Typically if you had a virtual package you would get its providers to find which Package/Version you should really install.
Implementations§
Methods from Deref<Target = PrvIterator>§
Sourcepub fn version_str(&self) -> Result<&str, Exception>
pub fn version_str(&self) -> Result<&str, Exception>
The version string that this provides
Sourcepub unsafe fn target_pkg(&self) -> UniquePtr<PkgIterator>
pub unsafe fn target_pkg(&self) -> UniquePtr<PkgIterator>
The Target Package that can satisfy this provides
§Safety
If the inner pointer is null segfaults can occur.
Using crate::raw::IntoRawIter::make_safe
to convert to an Option
is recommended.
The returned UniquePtr cannot outlive the cache.
Sourcepub unsafe fn target_ver(&self) -> UniquePtr<VerIterator>
pub unsafe fn target_ver(&self) -> UniquePtr<VerIterator>
The Target Version that can satisfy this provides
§Safety
If the inner pointer is null segfaults can occur.
Using crate::raw::IntoRawIter::make_safe
to convert to an Option
is recommended.
The returned UniquePtr cannot outlive the cache.
pub fn index(&self) -> u64
Sourcepub unsafe fn unique(&self) -> UniquePtr<PrvIterator>
pub unsafe fn unique(&self) -> UniquePtr<PrvIterator>
Clone the pointer.
§Safety
If the inner pointer is null segfaults can occur.
Using crate::raw::IntoRawIter::make_safe
to convert to an Option
is recommended.
The returned UniquePtr cannot outlive the cache.