Struct cage::Source [−][src]
pub struct Source { /* fields omitted */ }
A single source tree.
Implementations
impl Source
[src]
impl Source
[src]pub fn alias(&self) -> &str
[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 mounted(&self) -> bool
[src]
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]
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]
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]
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]
pub fn clone_source<CR>(
&mut self,
runner: &CR,
dirs: &SourcesDirs
) -> Result<()> where
CR: CommandRunner,
[src]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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,