[−][src]Struct cage::Source
A single source tree.
Implementations
impl Source
[src]
pub fn alias(&self) -> &str
[src]
A short local name for this source tree, suitable for use as a directory name or command-line argument.
pub fn context(&self) -> &Context
[src]
The remote git URL from which we can clone this source tree.
pub fn mounted(&self) -> bool
[src]
Should this source tree be mounted into the appropriate containers?
pub fn set_mounted(&mut self, mounted: bool)
[src]
Set whether this source tree should be mounted into the appropriate containers?
pub fn path(&self, dirs: &SourcesDirs) -> PathBuf
[src]
The full path to where we expect any local copies of this code to
live. This will either be the location where we will check out a
git repository, or the path to the actual source tree, depending on
what type of Context
object we're dealing with.
The project
argument is mandatory because we can't store a pointer
to it without creating a circular reference loop.
pub fn is_available_locally(&self, dirs: &SourcesDirs) -> bool
[src]
Has this project been cloned locally?
pub fn clone_source<CR>(
&mut self,
runner: &CR,
dirs: &SourcesDirs
) -> Result<()> where
CR: CommandRunner,
[src]
&mut self,
runner: &CR,
dirs: &SourcesDirs
) -> Result<()> where
CR: CommandRunner,
Clone the source code of this repository using git.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> GetTypeId for T where
T: Any,
T: Any,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Err = <U as TryFrom<T>>::Err
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Err>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,