[][src]Struct libgitmail::tree::PatchTree

pub struct PatchTree<'mail> {
    pub this: Mail<'mail>,
    pub children: Vec<PatchTree<'mail>>,
    pub selected: bool,
}

A tree of patches that can be filtered to yield a PatchSet

Fields

this: Mail<'mail>

The current patch

children: Vec<PatchTree<'mail>>

All replies to this patch mail

selected: bool

Mark an email as selected

Methods

impl<'mail> PatchTree<'mail>[src]

pub fn new(initial: Patch<'mail>) -> Self[src]

pub fn select(&mut self)[src]

Select a specific mail into the tree

pub fn deselect(&mut self)[src]

Deselect a single mail from the tree

Auto Trait Implementations

impl<'mail> RefUnwindSafe for PatchTree<'mail>

impl<'mail> Send for PatchTree<'mail>

impl<'mail> Sync for PatchTree<'mail>

impl<'mail> Unpin for PatchTree<'mail>

impl<'mail> UnwindSafe for PatchTree<'mail>

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.