[][src]Struct cargo_parcel::ManSource

pub struct ManSource { /* fields omitted */ }

Represents a manual page to be installed.

Methods

impl ManSource[src]

pub fn section(&self) -> u8[src]

The man page section.

pub fn target_file_name(&self) -> &str[src]

Returns the target file name of the man page.

The returned path includes the suffix such as ".1" or ".3pm", and indicates the file name the man page should be installed as.

pub fn path(&self) -> &Path[src]

Returns the path to the source file of the man page.

pub fn format(&self) -> ManSourceFormat[src]

Returns the file format of the source file.

Trait Implementations

impl Clone for ManSource[src]

impl Debug for ManSource[src]

impl FromStr for ManSource[src]

type Err = ParseManSourceError

The associated error which can be returned from parsing.

impl<'_> TryFrom<&'_ str> for ManSource[src]

type Error = ParseManSourceError

The type returned in the event of a conversion error.

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,