pub struct ValuesPath { /* private fields */ }Expand description
A structural path beneath Helm’s .Values root.
Segments are the semantic representation. Encoding is explicit because dots and backslashes in literal keys must not become selector boundaries.
Implementations§
Source§impl ValuesPath
impl ValuesPath
Sourcepub fn parse(path: &str) -> Self
pub fn parse(path: &str) -> Self
Parses the legacy escaped-dot path spelling into structural segments.
Sourcepub fn from_segments<I, S>(segments: I) -> Self
pub fn from_segments<I, S>(segments: I) -> Self
Constructs a path from literal structural segments.
Sourcepub fn segments(
&self,
) -> impl DoubleEndedIterator<Item = &Segment> + ExactSizeIterator
pub fn segments( &self, ) -> impl DoubleEndedIterator<Item = &Segment> + ExactSizeIterator
Iterates structural segments from root to leaf.
Sourcepub fn parent(&self) -> Option<Self>
pub fn parent(&self) -> Option<Self>
Returns the strict structural parent, if this path is non-root.
Sourcepub fn push(&mut self, segment: impl Into<String>)
pub fn push(&mut self, segment: impl Into<String>)
Appends one literal segment. Empty segments preserve legacy no-op behavior.
Sourcepub fn push_each_member(&mut self)
pub fn push_each_member(&mut self)
Appends the structural marker for every ranged member.
Sourcepub fn is_descendant_of(&self, ancestor: &Self) -> bool
pub fn is_descendant_of(&self, ancestor: &Self) -> bool
Reports whether this path is a strict descendant of ancestor.
Sourcepub fn item_parent(&self) -> Option<Self>
pub fn item_parent(&self) -> Option<Self>
Returns the collection path for a trailing member segment.
Trait Implementations§
Source§impl Clone for ValuesPath
impl Clone for ValuesPath
Source§fn clone(&self) -> ValuesPath
fn clone(&self) -> ValuesPath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValuesPath
impl Debug for ValuesPath
Source§impl Default for ValuesPath
impl Default for ValuesPath
Source§fn default() -> ValuesPath
fn default() -> ValuesPath
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ValuesPath
impl<'de> Deserialize<'de> for ValuesPath
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ValuesPath
Source§impl Hash for ValuesPath
impl Hash for ValuesPath
Source§impl Ord for ValuesPath
impl Ord for ValuesPath
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ValuesPath
impl PartialEq for ValuesPath
Auto Trait Implementations§
impl Freeze for ValuesPath
impl RefUnwindSafe for ValuesPath
impl Send for ValuesPath
impl Sync for ValuesPath
impl Unpin for ValuesPath
impl UnsafeUnpin for ValuesPath
impl UnwindSafe for ValuesPath
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