pub struct Alternative {
pub hardened: bool,
pub value: u32,
}Expand description
One alternative within a multipath substitution group.
Fields§
§hardened: boolWhether this alternative is a hardened child index.
value: u32Child-number value of this alternative.
Implementations§
Trait Implementations§
Source§impl Clone for Alternative
impl Clone for Alternative
Source§fn clone(&self) -> Alternative
fn clone(&self) -> Alternative
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 Alternative
impl Debug for Alternative
Source§impl PartialEq for Alternative
impl PartialEq for Alternative
Source§fn eq(&self, other: &Alternative) -> bool
fn eq(&self, other: &Alternative) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Alternative
impl Eq for Alternative
impl StructuralPartialEq for Alternative
Auto Trait Implementations§
impl Freeze for Alternative
impl RefUnwindSafe for Alternative
impl Send for Alternative
impl Sync for Alternative
impl Unpin for Alternative
impl UnsafeUnpin for Alternative
impl UnwindSafe for Alternative
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