Struct fourleaf::adapt::Copied [] [src]

pub struct Copied<T>(pub T);

Causes the inner type to be deserialised with the Copying style regardless of the overarching deserialisation style.

Trait Implementations

impl<T: Debug> Debug for Copied<T>
[src]

Formats the value using the given formatter.

impl<T: Default> Default for Copied<T>
[src]

Returns the "default value" for a type. Read more

impl<T: Copy> Copy for Copied<T>
[src]

impl<T: Clone> Clone for Copied<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq for Copied<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> Eq for Copied<T>
[src]

impl<T: PartialOrd> PartialOrd for Copied<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> Ord for Copied<T>
[src]

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

impl<T: Hash> Hash for Copied<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: Serialize> SerializeAs for Copied<T>
[src]

The actual type to serialise.

Returns the value to be serialised in lieu of self.

impl<T, R: Read, STYLE> Deserialize<R, STYLE> for Copied<T> where
    T: Deserialize<R, Copying>, 
[src]

Type used to accumulate the deserialised value of this field. Read more

Deserialises this type from a top-level stream or from the tail portion of a struct. If this call succeeds, all field elements up to and including the closing EndOfStruct element are consumed. Read more

Deserialises this type from a field in a container. Read more

Deserialises this type from a single field entry, which is known to be the only occurrence that would constitute this value. Read more

Convert an accumulated value to a value of this type. Read more

Returns whether deserialize_vec and the deserialize_array_* methods return non-None. Read more

If this type's Serialize implementation has special behaviour in serialize_slice, perform the reverse operation here and return a Vec of values. Read more

If this type's Serialize implementation has special behaviour in serialize_slice, perform the reverse operation here and write into the given slice of values, or return Err if the slice is not the appropriate length. Read more

If this type's Serialize implementation has special behaviour in serialize_slice, perform the reverse operation here return an array of the given length, or return an error if the actual number of values is different from the length of the array. Read more