[][src]Struct git_odb::pack::tree::Node

pub struct Node<'a, T> {
    pub data: T,
    // some fields omitted
}

An item returned by a Chunks iterator, allowing access to the data stored alongside nodes in a Tree

Fields

data: T

The custom data attached to each node of the tree whose ownership was transferred into the iteration.

Implementations

impl<'a, T> Node<'a, T> where
    T: Default
[src]

pub fn offset(&self) -> u64[src]

Returns the offset into the pack at which the Nodes data is located.

pub fn entry_slice(&self) -> EntrySlice[src]

Returns the slice into the data pack at which the pack entry is located.

pub fn store_changes_then_into_child_iter(
    self
) -> impl Iterator<Item = Node<'a, T>>
[src]

Write potentially changed Node data back into the Tree and transform this Node into an iterator over its Nodes children.

Children are Nodes referring to pack entries whose base object is this pack entry.

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for Node<'a, T>[src]

impl<'a, T> Send for Node<'a, T> where
    T: Send
[src]

impl<'a, T> Sync for Node<'a, T> where
    T: Sync
[src]

impl<'a, T> Unpin for Node<'a, T> where
    T: Unpin
[src]

impl<'a, T> !UnwindSafe for Node<'a, T>[src]

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<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> 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>,