[][src]Enum dubp_documents::text_document_traits::TextDocumentFormat

pub enum TextDocumentFormat<D: TextDocument> {
    Complete(D),
    Compact(D::CompactTextDocument_),
}

Contains a document in full or compact format

Variants

Complete(D)

Complete format (Allows to check the validity of the signature)

Compact(D::CompactTextDocument_)

Format present in the blocks (does not always allow to verify the signature)

Methods

impl<D: TextDocument> TextDocumentFormat<D>[src]

pub fn to_compact_document(&self) -> D::CompactTextDocument_[src]

To compact document

Trait Implementations

impl<D: TextDocument> CompactTextDocument for TextDocumentFormat<D>[src]

impl<D: Clone + TextDocument> Clone for TextDocumentFormat<D> where
    D::CompactTextDocument_: Clone
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<D: PartialEq + TextDocument> PartialEq<TextDocumentFormat<D>> for TextDocumentFormat<D> where
    D::CompactTextDocument_: PartialEq
[src]

impl<D: Eq + TextDocument> Eq for TextDocumentFormat<D> where
    D::CompactTextDocument_: Eq
[src]

impl<D: Debug + TextDocument> Debug for TextDocumentFormat<D> where
    D::CompactTextDocument_: Debug
[src]

impl<'de, D: TextDocument> Deserialize<'de> for TextDocumentFormat<D> where
    D: Deserialize<'de>,
    D::CompactTextDocument_: Deserialize<'de>, 
[src]

impl<D: TextDocument> Serialize for TextDocumentFormat<D> where
    D: Serialize,
    D::CompactTextDocument_: Serialize
[src]

Auto Trait Implementations

impl<D> Sync for TextDocumentFormat<D> where
    D: Sync,
    <D as TextDocument>::CompactTextDocument_: Sync

impl<D> Send for TextDocumentFormat<D> where
    D: Send,
    <D as TextDocument>::CompactTextDocument_: Send

impl<D> Unpin for TextDocumentFormat<D> where
    D: Unpin,
    <D as TextDocument>::CompactTextDocument_: Unpin

impl<D> RefUnwindSafe for TextDocumentFormat<D> where
    D: RefUnwindSafe,
    <D as TextDocument>::CompactTextDocument_: RefUnwindSafe

impl<D> UnwindSafe for TextDocumentFormat<D> where
    D: UnwindSafe,
    <D as TextDocument>::CompactTextDocument_: UnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]