Skip to main content

Module config

Module config 

Source
Expand description

Global configuration for wincode.

This module provides configuration types and structs for configuring wincode’s behavior. See Configuration for more details on how to configure wincode.

Additionally, this module provides traits and functions that mirror the serialization, deserialization, and zero-copy traits and functions from the crate root, but with an additional configuration parameter.

Structs§

Configuration
Compile-time configuration for runtime behavior.

Constants§

DEFAULT_PREALLOCATION_SIZE_LIMIT
PREALLOCATION_SIZE_LIMIT_DISABLED

Traits§

Config
Trait for configuration access when you need access to type parameters that depend on Config (e.g., Config::LengthEncoding).
ConfigCore
Trait for accessing configuration values when only the constant knobs are needed (e.g., PREALLOCATION_SIZE_LIMIT, ZERO_COPY_ALIGN_CHECK).
Deserialize
Like crate::Deserialize, but allows the caller to provide a custom configuration.
DeserializeOwned
Like crate::DeserializeOwned, but allows the caller to provide a custom configuration.
Serialize
Like crate::Serialize, but allows the caller to provide a custom configuration.
ZeroCopy
Marker trait for types that can be deserialized via direct borrows from a Reader.

Functions§

deserialize
Like crate::deserialize, but allows the caller to provide a custom configuration.
deserialize_exact
Like crate::deserialize_exact, but with a custom configuration.
deserialize_from
Like crate::deserialize_from, but allows the caller to provide a custom configuration.
deserialize_mut
Like crate::deserialize_mut, but allows the caller to provide a custom configuration.
deserialize_with_context
Like crate::deserialize_with_context, but allows the caller to provide a custom configuration.
serialize
Like crate::serialize, but allows the caller to provide a custom configuration.
serialize_into
Like crate::serialize_into, but allows the caller to provide a custom configuration.
serialized_size
Like crate::serialized_size, but allows the caller to provide a custom configuration.

Type Aliases§

DefaultConfig