[][src]Struct readme_sync::Package

pub struct Package { /* fields omitted */ }

A struct contains package manifest and its root path.

Implementations

impl Package[src]

pub fn from_path(path: PathBuf) -> Result<Self, TomlReadError>[src]

Creates a package from the specified path.

pub fn from_manifest_and_path(manifest: Manifest, path: PathBuf) -> Self[src]

Creates a package from the manifest and package path.

pub fn manifest(&self) -> &Manifest[src]

Returns a package manifest.

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

Returns a package path.

pub fn relative_readme_path(&self) -> Option<&Path>[src]

Returns package relative readme path.

pub fn default_relative_readme_path(&self) -> Option<&Path>[src]

Returns package relative default readme path.

Trait Implementations

impl Clone for Package[src]

impl Debug for Package[src]

impl Eq for Package[src]

impl PartialEq<Package> for Package[src]

impl StructuralEq for Package[src]

impl StructuralPartialEq for Package[src]

Auto Trait Implementations

impl RefUnwindSafe for Package

impl Send for Package

impl Sync for Package

impl Unpin for Package

impl UnwindSafe for Package

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.