Struct quire::De [] [src]

pub struct De<T: ?Sized>(_);

A wrapper around type that has Decodable implementation

This is a temporary solution that will go with the releasing of macros 1.1 (and migration to serde) I think.

There are many ways to convert this to the real value:

  • Deref value *x
  • Default converter x.into() or x.clone().into()
  • Convert to reference x.as_ref()

I.e. it many cases it should work seamlessly instead of the reference to encopassed original type

Methods

impl<T> De<T>
[src]

Trait Implementations

impl Decodable for De<Regex>
[src]

Deserialize a value using a Decoder.

impl Decodable for De<Duration>
[src]

Deserialize a value using a Decoder.

impl<T: Clone + ?Sized> Clone for De<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy + ?Sized> Copy for De<T>
[src]

impl<T: PartialEq + ?Sized> PartialEq for De<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq + ?Sized> Eq for De<T>
[src]

impl<T: Hash + ?Sized> Hash for De<T>
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl<T: PartialOrd + ?Sized> PartialOrd for De<T>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T: Ord + ?Sized> Ord for De<T>
[src]

This method returns an Ordering between self and other. Read more

impl<T: Debug + ?Sized> Debug for De<T>
[src]

Formats the value using the given formatter.

impl<T: ?Sized> Deref for De<T>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<T: ?Sized, U> AsRef<U> for De<T> where T: AsRef<U>
[src]

Performs the conversion.

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

Performs the conversion.