Struct cage::Sources[][src]

pub struct Sources { /* fields omitted */ }

All the source trees associated with a project’s Docker images.

Implementations

impl Sources[src]

pub fn iter(&self) -> Iter<'_>

Notable traits for Iter<'a>

impl<'a> Iterator for Iter<'a> type Item = &'a Source;
[src]

Iterate over all source trees associated with this project.

TODO LOW: Replace with IntoIterator.

pub fn iter_mut(&mut self) -> IterMut<'_>[src]

Iterate over all source trees associated with this project.

pub fn find_by_alias(&self, alias: &str) -> Option<&Source>[src]

Look up a source tree using the short-form local alias.

pub fn find_by_alias_mut(&mut self, alias: &str) -> Option<&mut Source>[src]

Look up a source tree mutably using the short-form local alias.

pub fn find_by_context(&self, context: &Context) -> Option<&Source>[src]

Look up a source tree given a git URL.

pub fn find_by_lib_key(&self, lib_key: &str) -> Option<&Source>[src]

Look up a source tree using a “lib key”, which is key used in config/sources.yml and with service labels of the form io.fdy.cage.lib.<KEY>.

pub fn find_by_lib_key_mut(&mut self, lib_key: &str) -> Option<&mut Source>[src]

Look up a source tree using a “lib key”, which is key used in config/sources.yml and with service labels of the form io.fdy.cage.lib.<KEY>.

pub fn save_settings(&self, out_dir: &Path) -> Result<()>[src]

Save any state that we want to persist until the next run.

Trait Implementations

impl Debug for Sources[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl RefUnwindSafe for Sources

impl Send for Sources

impl Sync for Sources

impl Unpin for Sources

impl UnwindSafe for Sources

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> GetTypeId for T where
    T: Any

fn typeid(&self) -> TypeId

impl<T> Instrument for T[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]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T> Instrument for T[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]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Err = <U as TryFrom<T>>::Err

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Err>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Err>

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V