pub struct FieldPath { /* private fields */ }Expand description
A parsed field path: tags, generated.how, sources[].resource.
Implementations§
Source§impl FieldPath
impl FieldPath
Sourcepub fn parse(path: &str) -> Self
pub fn parse(path: &str) -> Self
Parse a path as a declaration or a finding writes it. Never fails: a malformed bracket group is read as part of the key it follows.
Sourcepub fn is_concrete(&self) -> bool
pub fn is_concrete(&self) -> bool
Whether every list step names one item — the form an Address takes.
Sourcepub fn enters_list(&self) -> bool
pub fn enters_list(&self) -> bool
Whether the path reaches into a list at all. A path that does not is the shape a starting value can be written at.
Trait Implementations§
impl Eq for FieldPath
impl StructuralPartialEq for FieldPath
Auto Trait Implementations§
impl Freeze for FieldPath
impl RefUnwindSafe for FieldPath
impl Send for FieldPath
impl Sync for FieldPath
impl Unpin for FieldPath
impl UnsafeUnpin for FieldPath
impl UnwindSafe for FieldPath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.