pub struct Config {
    pub zeroed_scalar_values: bool,
}
Expand description

Configuration parameters for encoding and decoding

Fields

zeroed_scalar_values: bool

Flag to zero skip scalar values during encoding, and zero them during decoding

Implementations

Serialized length

Default value as constant

Set the flag to cache the source path

Trait Implementations

Package name (e.g. CARGO_PKG_NAME)

Path of the serialized configuration

Load a config instance from the config dir

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Configuration for the serialization and deserialization

A zeroed/default instance of the type.

Serializable length Read more

Write the type into the buffer. Read more

Deserialize the type from a given buffer Read more

Perform the internal validations of the associated element

Assert the buffer is big enough to store the type

Serialize the object into a bytes array.

Create a new instance of the type from the provided buffer

Write an element from the buffer, and return the remainder bytes Read more

Write an element from the buffer, and return the remainder bytes Read more

Read an element into the buffer, returning the remainder bytes Read more

Send the bytes representation of an element to a writer

Fetch a new element from a context

Converts to this type from the input type.

Converts to this type from the input type.

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.