Struct Bindings

pub struct Bindings { /* private fields */ }

Generated Rust bindings.

Implementations

impl Bindings

fn write_to_file<P: AsRef<Path>>(&self, path: P) -> Result<()>

Write these bindings as source text to a file.

fn write<'a>(&self, writer: Box<dyn Write + 'a>) -> Result<()>

Write these bindings as source text to the given Writeable.

Trait Implementations

impl Debug for Bindings

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

impl Display for Bindings

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

Auto Trait Implementations

impl !RefUnwindSafe for Bindings

impl !Send for Bindings

impl !Sync for Bindings

impl !UnwindSafe for Bindings

impl Freeze for Bindings

impl Unpin for Bindings

impl UnsafeUnpin for Bindings

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for Bindings

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for Bindings

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

fn to_string(&self) -> String

impl<T, U> Into<U> for Bindings 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 Bindings 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 Bindings where U: TryFrom<T>,

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