[−][src]Struct dogear::ParentBuilder
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 parentid
s 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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,