Enum BindgenError

#[non_exhaustive]
pub enum BindgenError

Error type for rust-bindgen.

Variants

FolderAsHeader(PathBuf)

The header was a folder.

InsufficientPermissions(PathBuf)

Permissions to read the header is insufficient.

NotExist(PathBuf)

The header does not exist.

ClangDiagnostic(String)

Clang diagnosed an error.

Codegen(CodegenError)

Code generation reported an error.

UnsupportedEdition(RustEdition, RustTarget)

The passed edition is not available on that Rust target.

Trait Implementations

impl Clone for BindgenError

fn clone(&self) -> BindgenError

impl Debug for BindgenError

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

impl Display for BindgenError

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

impl Eq for BindgenError

impl Error for BindgenError

impl Hash for BindgenError

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

impl PartialEq for BindgenError

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

impl StructuralPartialEq for BindgenError

Auto Trait Implementations

impl Freeze for BindgenError

impl RefUnwindSafe for BindgenError

impl Send for BindgenError

impl Sync for BindgenError

impl Unpin for BindgenError

impl UnsafeUnpin for BindgenError

impl UnwindSafe for BindgenError

Blanket Implementations

impl<T> Any for BindgenError where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for BindgenError where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for BindgenError where T: ?Sized,

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

impl<T> CloneToUninit for BindgenError where T: Clone,

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

impl<T> From<T> for BindgenError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for BindgenError

impl<T> ToOwned for BindgenError where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> ToString for BindgenError where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T, U> Into<U> for BindgenError where U: From<T>,

fn into(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<U> for BindgenError where U: Into<T>,

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

impl<T, U> TryInto<U> for BindgenError where U: TryFrom<T>,

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