ParcelBuilder

Struct ParcelBuilder 

Source
pub struct ParcelBuilder(/* private fields */);
Expand description

A builder allowing to configuration of optional parcel properties.

Implementations§

Source§

impl ParcelBuilder

Source

pub fn cargo_binaries<I>(self, bins: I) -> Self
where I: IntoIterator, I::Item: AsRef<str>,

Configures the cargo binaries.

Source

pub fn man_pages<I>(self, sources: I) -> Result<Self, ManPageError>
where I: IntoIterator, I::Item: AsRef<str>,

Configures the man pages to install.

Source

pub fn pkg_data<I>(self, pkg_data: I) -> Result<Self, PkgDataError>
where I: IntoIterator, I::Item: AsRef<str>,

Configures data files and directories to be installed in an application-specific directory.

The strings passed will be expanded as glob expressions, and need to refer to existing files or directories, relative to the crate root directory. The resulting list of paths will be copied, recursively, in the case of directories into the application-specific data directory below the installation prefix. Note they will be placed in that directory using their file name, ignoring any leading directory components.

Source

pub fn finish(self) -> Parcel

Finishes configuration and returns the parcel as configured.

Trait Implementations§

Source§

impl Debug for ParcelBuilder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V