Expand description
Types used to refer to the field(s) that one is accessing.
The re-exported items are all field-path related.
Re-exports§
pub use crate::FieldPathSet;pub use crate::NestedFieldPath;pub use crate::NestedFieldPathSet;pub use crate::TStr;pub use crate::VariantField;pub use crate::VariantName;
Modules§
- aliases
- Aliases for field paths.
- array_
paths - Traits for paths when used for arrays,and aliases for indices up to 31.
- string_
aliases - Aliases for TStr.
Macros§
- FP
- Constructs a field path type for use as a generic parameter.
- field_
path_ aliases - Declares aliases for field paths,used to access fields.
- fp
- Constructs a field path value, which determines the field(s) accessed in StructuralExt methods.
Structs§
- Aliased
Paths - A merker type indicating that a (
Nested)FieldPathSetmight not contain unique field paths. It’s not possible to pass aFieldPathSet<_,AliasedPaths>toStructuralExt::fields_mutorStructuralExt::into_fields. - Large
Path Set - A newtype wrapper used to allow
FieldPathSetto access from 9 up to 64 fields. - Unique
Paths - A merker type indicating that a (
Nested)FieldPathSetcontains unique field paths, in which no path is a prefix of any other path in the set, this is required to callStructuralExt::fields_mutorStructuralExt::into_fields.
Traits§
- Into
Aliasing - Converts a
FieldPathSet<_,UniquePaths>into aFieldPathSet<_,AliasedPaths>on the type level. - IsMulti
Field Path - A marker trait for field paths that refer to multiple fields
- IsSingle
Field Path - A marker trait for field paths that only refers to one field.
- IsTStr
- A marker trait for type-level strings.
- Shallow
Field Path - A marker trait for field paths of non-nested field(s).
Type Aliases§
- Into
Aliasing Out - Converts a
FieldPathSet<_,UniquePaths>into aFieldPathSet<_,AliasedPaths>on the type level.