pub struct OpenedRustLib { /* private fields */ }Expand description
One fully loaded managed Rust library.
Implementations§
Source§impl OpenedRustLib
impl OpenedRustLib
pub fn name(&self) -> &str
Sourcepub fn files(&self) -> &[RustLibFile]
pub fn files(&self) -> &[RustLibFile]
Returns every managed UTF-8 file exactly once, sorted by path.
Sourcepub fn write(&mut self, files: &[RustLibFile]) -> Result<()>
pub fn write(&mut self, files: &[RustLibFile]) -> Result<()>
Creates or completely replaces supplied files and refreshes the snapshot.
Sourcepub fn check(&self) -> Result<CheckResult>
pub fn check(&self) -> Result<CheckResult>
Runs the complete six-stage validation pipeline.
Auto Trait Implementations§
impl Freeze for OpenedRustLib
impl RefUnwindSafe for OpenedRustLib
impl Send for OpenedRustLib
impl Sync for OpenedRustLib
impl Unpin for OpenedRustLib
impl UnsafeUnpin for OpenedRustLib
impl UnwindSafe for OpenedRustLib
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