pub enum Segment {
Literal(String),
EachMember,
}Expand description
One structural component of a ValuesPath.
Variants§
Literal(String)
A chart-authored mapping key, including a literal * key.
EachMember
Every member reached by a Helm range.
Implementations§
Source§impl Segment
impl Segment
Sourcepub fn literal(&self) -> Option<&str>
pub fn literal(&self) -> Option<&str>
Returns the chart-authored key, or None for a member wildcard.
Sourcepub const fn is_each_member(&self) -> bool
pub const fn is_each_member(&self) -> bool
Reports whether this segment selects every ranged member.
Sourcepub fn encode_component(&self) -> String
pub fn encode_component(&self) -> String
Encodes this segment for legacy string-based phase boundaries.
Sourcepub fn from_encoded_component(encoded: &str) -> Self
pub fn from_encoded_component(encoded: &str) -> Self
Decodes one component emitted by Self::encode_component.
Trait Implementations§
impl Eq for Segment
Source§impl Ord for Segment
impl Ord for Segment
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 PartialOrd for Segment
impl PartialOrd for Segment
impl StructuralPartialEq for Segment
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnsafeUnpin for Segment
impl UnwindSafe for Segment
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