pub enum Step {
Key(String),
Index(usize),
}Available on crate features
input-toml or input-yaml only.Expand description
One step down a FieldPath: a mapping key or a sequence index.
The set is closed, because a node of a YAML or TOML document is entered by one of these two ways and by no other.
Variants§
Key(String)
A key of a mapping or table. Any text: it may hold ., *, /, [,
or only digits.
Index(usize)
An item of a sequence or array.
Trait Implementations§
impl Eq for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Forget for Step
impl Freeze for Step
impl Move for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more