pub struct Bindings { /* private fields */ }Expand description
Validated generated Rust source and the metadata used to produce it.
Implementations§
Source§impl Bindings
impl Bindings
pub fn source(&self) -> &str
pub const fn snapshot(&self) -> &Snapshot
Sourcepub fn write_to(&self, path: impl AsRef<Path>) -> Result<(), Error>
pub fn write_to(&self, path: impl AsRef<Path>) -> Result<(), Error>
Write source without changing the file when its content is identical.
§Errors
Fails when reading or writing the output file fails.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bindings
impl RefUnwindSafe for Bindings
impl Send for Bindings
impl Sync for Bindings
impl Unpin for Bindings
impl UnsafeUnpin for Bindings
impl UnwindSafe for Bindings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more