pub struct HelperBranch {
pub guard: Option<CapabilityGuard>,
pub body: HelperBranchBody,
}Expand description
One branch of an if/elif/else chain in a helper or manifest header.
Fields§
§guard: Option<CapabilityGuard>None = unguarded trailing else; Some = structurally decoded guard.
body: HelperBranchBodyThe apiVersion literals or nested branch chain produced by this branch.
Trait Implementations§
Source§impl Clone for HelperBranch
impl Clone for HelperBranch
Source§fn clone(&self) -> HelperBranch
fn clone(&self) -> HelperBranch
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 HelperBranch
impl Debug for HelperBranch
Source§impl<'de> Deserialize<'de> for HelperBranch
impl<'de> Deserialize<'de> for HelperBranch
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 HelperBranch
Source§impl Hash for HelperBranch
impl Hash for HelperBranch
Source§impl Ord for HelperBranch
impl Ord for HelperBranch
Source§fn cmp(&self, other: &HelperBranch) -> Ordering
fn cmp(&self, other: &HelperBranch) -> Ordering
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
Source§impl PartialEq for HelperBranch
impl PartialEq for HelperBranch
Source§impl PartialOrd for HelperBranch
impl PartialOrd for HelperBranch
Source§impl Serialize for HelperBranch
impl Serialize for HelperBranch
impl StructuralPartialEq for HelperBranch
Auto Trait Implementations§
impl Freeze for HelperBranch
impl RefUnwindSafe for HelperBranch
impl Send for HelperBranch
impl Sync for HelperBranch
impl Unpin for HelperBranch
impl UnsafeUnpin for HelperBranch
impl UnwindSafe for HelperBranch
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