pub struct CrateArchive(/* private fields */);
Expand description
Represents a .crate
archive, which is a collection of files and their contents.
Implementations§
Source§impl CrateArchive
impl CrateArchive
Sourcepub fn download_crates_io<N, V>(name: N, version: V) -> Result<Self, Error>
pub fn download_crates_io<N, V>(name: N, version: V) -> Result<Self, Error>
Downloads and decodes a .crate
archive from crates.io
repository by given name and version of the package.
Requires the full version of the package, in the format of "x.y.z"
Returns error if the package with specified name and version - not exists.
§Errors
qqq: doc
Trait Implementations§
Source§impl Clone for CrateArchive
impl Clone for CrateArchive
Source§fn clone(&self) -> CrateArchive
fn clone(&self) -> CrateArchive
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CrateArchive
impl Debug for CrateArchive
Source§impl Default for CrateArchive
impl Default for CrateArchive
Source§fn default() -> CrateArchive
fn default() -> CrateArchive
Returns the “default value” for a type. Read more
Source§impl PartialEq for CrateArchive
impl PartialEq for CrateArchive
impl StructuralPartialEq for CrateArchive
Auto Trait Implementations§
impl Freeze for CrateArchive
impl RefUnwindSafe for CrateArchive
impl Send for CrateArchive
impl Sync for CrateArchive
impl Unpin for CrateArchive
impl UnwindSafe for CrateArchive
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