pub struct Detected<'a, T: ?Sized> { /* private fields */ }Expand description
A runtime or framework a detector chose, with the detector’s packager:
its commands are the ones for that packager. Everything else is the
option itself, through Deref.
PHP: the detection object detect() returns after setPackager().
Implementations§
Source§impl<T: Framework + ?Sized> Detected<'_, T>
impl<T: Framework + ?Sized> Detected<'_, T>
Sourcepub fn install_command(&self) -> &str
pub fn install_command(&self) -> &str
The install command for the detector’s packager.
PHP: getInstallCommand() on the detected framework.
Sourcepub fn build_command(&self) -> &str
pub fn build_command(&self) -> &str
The build command for the detector’s packager.
PHP: getBuildCommand() on the detected framework.
Trait Implementations§
impl<T: ?Sized> Copy for Detected<'_, T>
Auto Trait Implementations§
impl<'a, T> Forget for Detected<'a, T>where
T: ?Sized,
impl<'a, T> Freeze for Detected<'a, T>
impl<'a, T> Move for Detected<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for Detected<'a, T>
impl<'a, T> Send for Detected<'a, T>
impl<'a, T> Sync for Detected<'a, T>
impl<'a, T> Unpin for Detected<'a, T>
impl<'a, T> UnsafeUnpin for Detected<'a, T>
impl<'a, T> UnwindSafe for Detected<'a, T>
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