Struct maturin::PathWriter [−][src]
A ModuleWriter that adds the module somewhere in the filesystem, e.g. in a virtualenv
Implementations
impl PathWriter
[src]
pub fn venv(
target: &Target,
venv_dir: &Path,
bridge: &BridgeModel
) -> Result<Self>
[src]
target: &Target,
venv_dir: &Path,
bridge: &BridgeModel
) -> Result<Self>
Creates a ModuleWriter that adds the modul to the current virtualenv
pub fn from_path(path: impl AsRef<Path>) -> Self
[src]
Writes the module to the given path
pub fn delete_dir(&self, relative: impl AsRef<Path>) -> Result<()>
[src]
Removes a directory relative to the base path if it exists.
This is to clean up the contents of an older develop call
pub fn write_record(self, metadata21: &Metadata21) -> Result<()>
[src]
Writes the RECORD file after everything else has been written
Trait Implementations
impl ModuleWriter for PathWriter
[src]
fn add_directory(&mut self, path: impl AsRef<Path>) -> Result<()>
[src]
fn add_bytes_with_permissions(
&mut self,
target: impl AsRef<Path>,
bytes: &[u8],
_permissions: u32
) -> Result<()>
[src]
&mut self,
target: impl AsRef<Path>,
bytes: &[u8],
_permissions: u32
) -> Result<()>
fn add_bytes(&mut self, target: impl AsRef<Path>, bytes: &[u8]) -> Result<()>
[src]
fn add_file(
&mut self,
target: impl AsRef<Path>,
source: impl AsRef<Path>
) -> Result<()>
[src]
&mut self,
target: impl AsRef<Path>,
source: impl AsRef<Path>
) -> Result<()>
fn add_file_with_permissions(
&mut self,
target: impl AsRef<Path>,
source: impl AsRef<Path>,
permissions: u32
) -> Result<()>
[src]
&mut self,
target: impl AsRef<Path>,
source: impl AsRef<Path>,
permissions: u32
) -> Result<()>
Auto Trait Implementations
impl RefUnwindSafe for PathWriter
[src]
impl Send for PathWriter
[src]
impl Sync for PathWriter
[src]
impl Unpin for PathWriter
[src]
impl UnwindSafe for PathWriter
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,