Crate facet_peek

Crate facet_peek 

Source
Expand description

Facet logo - a reflection library for Rust   facet-peek

experimental free of syn crates.io documentation MIT/Apache-2.0 licensed

Logo by Misiasart

Thanks to all individual and corporate sponsors, without whom this work could not exist:

Ko-fi GitHub Sponsors Patreon Zed

Provides safe read operations for arbitrary Facet types.

§License

Licensed under either of:

at your option. Allows peeking (reading from) shapes

Structs§

PeekEnum
Lets you read from an enum (implements read-only enum operations)
PeekList
Lets you read from a list (implements read-only facet_core::ListVTable proxies)
PeekListIter
Iterator over a PeekList
PeekMap
Lets you read from a map (implements read-only facet_core::MapVTable proxies)
PeekMapIter
Iterator over key-value pairs in a PeekMap
PeekOption
Lets you read from an option (implements read-only option operations)
PeekStruct
Lets you read from a struct (implements read-only struct operations)
PeekValue
Lets you read from a value (implements read-only ValueVTable proxies)

Enums§

Peek
Lets you peek at the innards of a value

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
peek_option
Returns the option definition if the shape represents an option, None otherwise