[−][src]Trait pyo3_pack::ModuleWriter
Allows writing the module to a wheel or add it directly to the virtualenv
Required methods
fn add_directory(&mut self, path: impl AsRef<Path>) -> Result<(), Error>
Adds a directory relative to the module base path
fn add_bytes_with_permissions(
&mut self,
target: impl AsRef<Path>,
bytes: &[u8],
permissions: u32
) -> Result<(), Error>
&mut self,
target: impl AsRef<Path>,
bytes: &[u8],
permissions: u32
) -> Result<(), Error>
Adds a file with bytes as content in target relative to the module base path while setting the given unix permissions
Provided methods
fn add_bytes(
&mut self,
target: impl AsRef<Path>,
bytes: &[u8]
) -> Result<(), Error>
&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>
&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
Implementors
impl ModuleWriter for PathWriter
[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>
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>
impl ModuleWriter for SDistWriter
[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_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>
fn add_bytes(
&mut self,
target: impl AsRef<Path>,
bytes: &[u8]
) -> Result<(), Error>
[src]
&mut self,
target: impl AsRef<Path>,
bytes: &[u8]
) -> Result<(), Error>
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>
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>