Enum fourleaf::unknown::UnknownField [] [src]

pub enum UnknownField<'a> {
    Integer(u64),
    Blob(Cow<'a, [u8]>),
    Struct(UnknownFields<'a>),
    Enum(u64UnknownFields<'a>),
}

A single field of arbitrary type.

This is not intended to be particularly easy use; it mainly exists as a storage mechanism for UnknownFields.

Variants

An integer value.

There is no way to tell what the integer actually represents, whether it is signed (with ZigZag) or unsigned, etc.

A binary blob.

A child structure.

A child enum with the given discriminant.

Trait Implementations

impl<'a> Debug for UnknownField<'a>
[src]

Formats the value using the given formatter.

impl<'a> Clone for UnknownField<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> PartialEq for UnknownField<'a>
[src]

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

This method tests for !=.

impl<'a> Eq for UnknownField<'a>
[src]

impl<'a> Serialize for UnknownField<'a>
[src]

Serialises this value, which is an element of a collection, to the given stream. Read more

Serialises this value, which is at top-level or the tail part of a struct. Read more

Serialises this value, which is a field of a struct, to the given stream. Read more

If slices of this type should be written specially, do so and return Some result. Otherwise, return None. Read more

impl<'a, R: Read, STYLE> Deserialize<R, STYLE> for UnknownField<'a> where
    Cow<'a, [u8]>: Deserialize<R, STYLE>, 
[src]

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

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

Convert an accumulated value to a value of this type. 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 single field entry, which is known to be the only occurrence that would constitute this value. 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