[−][src]Struct pyo3_pack::WheelWriter
A glorified zip builder, mostly useful for writing the record file of a wheel
Methods
impl WheelWriter
[src]
pub fn new(
tag: &str,
wheel_dir: &Path,
metadata21: &Metadata21,
scripts: &HashMap<String, String>,
tags: &[String]
) -> Result<WheelWriter, Error>
[src]
tag: &str,
wheel_dir: &Path,
metadata21: &Metadata21,
scripts: &HashMap<String, String>,
tags: &[String]
) -> Result<WheelWriter, Error>
Create a new wheel file which can be subsequently expanded
Adds the .dist-info directory and the METADATA file in it
pub fn finish(self) -> Result<PathBuf, Error>
[src]
Creates the record file and finishes the zip
Trait Implementations
impl ModuleWriter for WheelWriter
[src]
fn add_directory(&mut self, _path: impl AsRef<Path>) -> Result<(), Error>
[src]
fn add_bytes_with_permissions(
&mut self,
target: impl AsRef<Path>,
bytes: &[u8],
permissions: u32
) -> Result<(), Error>
[src]
&mut self,
target: impl AsRef<Path>,
bytes: &[u8],
permissions: u32
) -> Result<(), Error>
fn add_bytes(
&mut self,
target: impl AsRef<Path>,
bytes: &[u8]
) -> Result<(), Error>
[src]
&mut self,
target: impl AsRef<Path>,
bytes: &[u8]
) -> Result<(), Error>
Adds a file with bytes as content in target relative to the module base path
fn add_file(
&mut self,
target: impl AsRef<Path>,
source: impl AsRef<Path>
) -> Result<(), Error>
[src]
&mut self,
target: impl AsRef<Path>,
source: impl AsRef<Path>
) -> Result<(), Error>
Copies the source file the the target path relative to the module base path
Auto Trait Implementations
impl Send for WheelWriter
impl Sync for WheelWriter
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,