Struct maturin::PathWriter[][src]

pub struct PathWriter { /* fields omitted */ }

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]

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]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,