Struct readme_sync::Package [−][src]
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]
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, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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>,