Struct git_odb::traverse::ancestors::Ancestors[][src]

pub struct Ancestors<'a, Cache, Locate> { /* fields omitted */ }

An iterator over the ancestors one or more starting commits

Implementations

impl<'a, Cache, Locate> Ancestors<'a, Cache, Locate> where
    Cache: DecodeEntry,
    Locate: Locate
[src]

pub fn new(
    db: Locate,
    tips: impl IntoIterator<Item = impl Into<ObjectId>>,
    cache: &'a mut Cache
) -> Self
[src]

Create a new instance.

  • db - a way to lookup new object data during traversal
  • tips
    • the starting points of the iteration, usually commits
    • each commit they lead to will only be returned once, including the tip that started it
  • cache - a way to speedup object database access

Trait Implementations

impl<'a, Cache, Locate> Iterator for Ancestors<'a, Cache, Locate> where
    Cache: DecodeEntry,
    Locate: Locate
[src]

type Item = Result<ObjectId, Error<Locate::Error>>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, Cache, Locate> RefUnwindSafe for Ancestors<'a, Cache, Locate> where
    Cache: RefUnwindSafe,
    Locate: RefUnwindSafe

impl<'a, Cache, Locate> Send for Ancestors<'a, Cache, Locate> where
    Cache: Send,
    Locate: Send

impl<'a, Cache, Locate> Sync for Ancestors<'a, Cache, Locate> where
    Cache: Sync,
    Locate: Sync

impl<'a, Cache, Locate> Unpin for Ancestors<'a, Cache, Locate> where
    Locate: Unpin

impl<'a, Cache, Locate> !UnwindSafe for Ancestors<'a, Cache, Locate>

Blanket Implementations

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

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

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

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

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.

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.

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