rust-apt 0.10.0

Bindings for libapt-pkg
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once
#include <apt-pkg/error.h>
#include "rust-apt/src/error.rs"
#include "rust/cxx.h"

#include "types.h"

/// Handle the situation where a string is null and return a result to rust
inline bool pending_error() { return _error->PendingError(); }

inline bool empty() { return _error->empty(); }

Vec<AptError> get_all() noexcept;