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()
orx.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]
fn decode<D: Decoder>(dec: &mut D) -> Result<De<Regex>, D::Error>
Deserialize a value using a Decoder
.
impl Decodable for De<Duration>
[src]
fn decode<D: Decoder>(dec: &mut D) -> Result<De<Duration>, D::Error>
Deserialize a value using a Decoder
.
impl<T: Clone + ?Sized> Clone for De<T>
[src]
fn clone(&self) -> De<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
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]
fn eq(&self, __arg_0: &De<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &De<T>) -> bool
This method tests for !=
.
impl<T: Eq + ?Sized> Eq for De<T>
[src]
impl<T: Hash + ?Sized> Hash for De<T>
[src]
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl<T: PartialOrd + ?Sized> PartialOrd for De<T>
[src]
fn partial_cmp(&self, __arg_0: &De<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &De<T>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &De<T>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &De<T>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &De<T>) -> bool
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]
fn cmp(&self, __arg_0: &De<T>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl<T: Debug + ?Sized> Debug for De<T>
[src]
impl<T: ?Sized> Deref for De<T>
[src]
type Target = T
The resulting type after dereferencing
fn deref(&self) -> &T
The method called to dereference a value
impl<T: ?Sized, U> AsRef<U> for De<T> where T: AsRef<U>
[src]
fn as_ref(&self) -> &U
Performs the conversion.