Enum BindgenError

enum BindgenError

Error type for rust-bindgen.

Variants

FolderAsHeader(std::path::PathBuf)

The header was a folder.

InsufficientPermissions(std::path::PathBuf)

Permissions to read the header is insufficient.

NotExist(std::path::PathBuf)

The header does not exist.

ClangDiagnostic(String)

Clang diagnosed an error.

Codegen(codegen::CodegenError)

Code generation reported an error.

UnsupportedEdition(RustEdition, RustTarget)

The passed edition is not available on that Rust target.

Implementations

impl Clone for BindgenError

fn clone(self: &Self) -> BindgenError

impl Debug for BindgenError

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

impl Display for BindgenError

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

impl Eq for BindgenError

impl Error for BindgenError

impl Freeze for BindgenError

impl Hash for BindgenError

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl PartialEq for BindgenError

fn eq(self: &Self, other: &BindgenError) -> bool

impl RefUnwindSafe for BindgenError

impl Send for BindgenError

impl StructuralPartialEq for BindgenError

impl Sync for BindgenError

impl Unpin for BindgenError

impl UnwindSafe for BindgenError

impl<T> Any for BindgenError

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for BindgenError

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for BindgenError

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for BindgenError

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for BindgenError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for BindgenError

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> ToString for BindgenError

fn to_string(self: &Self) -> String

impl<T, U> Into for BindgenError

fn into(self: Self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom for BindgenError

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for BindgenError

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>