[][src]Enum deep_safe_drop::ReplacedFirstChild

pub enum ReplacedFirstChild<Link> {
    Yes {
        first_child: Link,
    },
    No {
        returned_parent: Link,
    },
}

Result of DeepSafeDrop::replace_first_child_with_parent.

Variants

Yes

There was a first child and it was replaced by the parent.

Fields of Yes

first_child: Link

The first child that was taken.

No

There was not any child, so no replacement was done, so the parent must be returned back.

Fields of No

returned_parent: Link

The same parent that was given to the function call.

Trait Implementations

impl<Link: Debug> Debug for ReplacedFirstChild<Link>[src]

Auto Trait Implementations

impl<Link> Send for ReplacedFirstChild<Link> where
    Link: Send

impl<Link> Sync for ReplacedFirstChild<Link> where
    Link: Sync

impl<Link> Unpin for ReplacedFirstChild<Link> where
    Link: Unpin

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