[][src]Struct dogear::ParentBuilder

pub struct ParentBuilder<'b>(_, _);

Adds structure for an existing item to a tree builder.

Methods

impl<'b> ParentBuilder<'b>[src]

pub fn by_children(self, parent_guid: &Guid) -> Result<&'b mut Builder>[src]

Records a parent_guid from the item's parent's children. The parent_guid must refer to an existing folder in the tree, but the item itself doesn't need to exist. This handles folders with missing children.

pub fn by_parent_guid(self, parent_guid: Guid) -> Result<&'b mut Builder>[src]

Records a parent_guid from the item's parentid. The item must exist in the tree, but the parent_guid doesn't need to exist, or even refer to a folder. The builder will reparent items with missing and non-folder parentids to the default folder when it builds the tree.

Auto Trait Implementations

impl<'b> Sync for ParentBuilder<'b>

impl<'b> Send for ParentBuilder<'b>

impl<'b> Unpin for ParentBuilder<'b>

impl<'b> RefUnwindSafe for ParentBuilder<'b>

impl<'b> !UnwindSafe for ParentBuilder<'b>

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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