pub struct Layout {
pub installers_tag: Option<String>,
/* private fields */
}Fields§
§installers_tag: Option<String>Emulated composer/installers tag, if the plugin is active.
Implementations§
Source§impl Layout
impl Layout
Sourcepub fn vendor_only(project_dir: &Path, lock: &Lock, with_dev: bool) -> Layout
pub fn vendor_only(project_dir: &Path, lock: &Lock, with_dev: bool) -> Layout
Everything in vendor/ (no layout plugin), for tests and code paths that have no plugin-aware lock.
Sourcepub fn resolve(
project_dir: &Path,
lock: &Lock,
manifest: &Value,
with_dev: bool,
plugins_enabled: bool,
) -> Result<Layout, Vec<String>>
pub fn resolve( project_dir: &Path, lock: &Lock, manifest: &Value, with_dev: bool, plugins_enabled: bool, ) -> Result<Layout, Vec<String>>
The full pass: plugin, allow-plugins, paths, refused targets, and the removal plan for installed.json packages that went away.
pub fn root(&self) -> &Path
Sourcepub fn rel(&self, name: &str) -> Option<&str>
pub fn rel(&self, name: &str) -> Option<&str>
Project-relative path (None: metapackage or unknown package).
Sourcepub fn package_root(&self, name: &str) -> Option<PathBuf>
pub fn package_root(&self, name: &str) -> Option<PathBuf>
Root to empty before laying out the package: vendor/<name>
(target-dir included) for LibraryInstaller, the target itself otherwise.
Sourcepub fn install_path(&self, name: &str) -> Option<String>
pub fn install_path(&self, name: &str) -> Option<String>
install-path of installed.json / installed.php: relative to
vendor/composer (findShortestPath($repoDir, $path, true)).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more