pub enum SourcePackageLayout {
Sources,
Specifications,
Tests,
Scripts,
Examples,
Manifest,
}Variants§
Implementations§
source§impl SourcePackageLayout
impl SourcePackageLayout
sourcepub fn path(&self) -> &Path
pub fn path(&self) -> &Path
A Move source package is laid out on-disk as a_move_package ├── Move.toml (required) ├── sources (required) ├── examples (optional, dev mode) ├── scripts (optional) ├── specifications (optional) └── tests (optional, test mode)
pub fn location_str(&self) -> &'static str
pub fn is_optional(&self) -> bool
Trait Implementations§
source§impl Clone for SourcePackageLayout
impl Clone for SourcePackageLayout
source§fn clone(&self) -> SourcePackageLayout
fn clone(&self) -> SourcePackageLayout
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SourcePackageLayout
impl Debug for SourcePackageLayout
source§impl PartialEq<SourcePackageLayout> for SourcePackageLayout
impl PartialEq<SourcePackageLayout> for SourcePackageLayout
source§fn eq(&self, other: &SourcePackageLayout) -> bool
fn eq(&self, other: &SourcePackageLayout) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for SourcePackageLayout
impl StructuralEq for SourcePackageLayout
impl StructuralPartialEq for SourcePackageLayout
Auto Trait Implementations§
impl RefUnwindSafe for SourcePackageLayout
impl Send for SourcePackageLayout
impl Sync for SourcePackageLayout
impl Unpin for SourcePackageLayout
impl UnwindSafe for SourcePackageLayout
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.