Expand description

Logo by Misiasart
Thanks to all individual and corporate sponsors, without whom this work could not exist:
Allows building values, via Partial
, and inspecting existing values, via PeekValue
.
§License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Macros§
- debug
- Forwards to log::debug when the log feature is enabled
- trace
- Forwards to log::trace when the log feature is enabled
Structs§
- Field
Iter - An iterator over all the fields of a struct or enum. See
HasFields::fields
- Fields
ForSerialize Iter - An iterator over the fields of a struct or enum that should be serialized. See
HasFields::fields_for_serialize
- Guard
- A guard structure to manage memory allocation and deallocation.
- Heap
Value - A type-erased value stored on the heap
- Partial
- A work-in-progress heap-allocated value
- Peek
- Lets you read from a value (implements read-only
ValueVTable
proxies) - Peek
Enum - Lets you read from an enum (implements read-only enum operations)
- Peek
List - Lets you read from a list (implements read-only
facet_core::ListVTable
proxies) - Peek
List Iter - Iterator over a
PeekList
- Peek
List Like - Lets you read from a list, array or slice
- Peek
List Like Iter - Iterator over a
PeekListLike
- PeekMap
- Lets you read from a map (implements read-only
facet_core::MapVTable
proxies) - Peek
MapIter - Iterator over key-value pairs in a
PeekMap
- Peek
Option - Lets you read from an option (implements read-only option operations)
- Peek
Smart Pointer - Represents a smart pointer that can be peeked at during memory inspection.
- Peek
Struct - Lets you read from a struct (implements read-only struct operations)
- Peek
Tuple - Lets you read from a tuple
- Tuple
Type - Local representation of a tuple type for peek operations
- Typed
Partial - A typed wrapper around
Partial
, for when you want to statically ensure thatbuild
gives you the proper type. - ValueId
- A unique identifier for a peek value
Enums§
- Generic
Ptr - A generic wrapper for either a thin or wide constant pointer. This enables working with both sized and unsized types using a single enum.
- List
Like Def - Fields for types which act like lists
- Reflect
Error - Errors that can occur when reflecting on types.
- Scalar
Type - All scalar types supported out of the box by peek and poke.
- Variant
Error - Error that can occur when trying to determine variant information
Traits§
- HasFields
- Trait for types that have field methods
Functions§
- peek_
enum - Returns the enum definition if the shape represents an enum, None otherwise
- peek_
enum_ repr - Returns the enum representation if the shape represents an enum, None otherwise
- peek_
enum_ variants - Returns the enum variants if the shape represents an enum, None otherwise
Type Aliases§
- Tuple
Field - Field index and associated peek value