Struct miniscript::descriptor::DerivPaths
source · pub struct DerivPaths(/* private fields */);
Expand description
The derivation paths in a multipath key expression.
Implementations§
source§impl DerivPaths
impl DerivPaths
sourcepub fn new(paths: Vec<DerivationPath>) -> Option<DerivPaths>
pub fn new(paths: Vec<DerivationPath>) -> Option<DerivPaths>
Create a non empty derivation paths list.
sourcepub fn paths(&self) -> &Vec<DerivationPath>
pub fn paths(&self) -> &Vec<DerivationPath>
Get the list of derivation paths.
sourcepub fn into_paths(self) -> Vec<DerivationPath>
pub fn into_paths(self) -> Vec<DerivationPath>
Get the list of derivation paths.
Trait Implementations§
source§impl Clone for DerivPaths
impl Clone for DerivPaths
source§fn clone(&self) -> DerivPaths
fn clone(&self) -> DerivPaths
Returns a copy of the value. Read more
1.0.0 · 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 DerivPaths
impl Debug for DerivPaths
source§impl Hash for DerivPaths
impl Hash for DerivPaths
source§impl Ord for DerivPaths
impl Ord for DerivPaths
source§fn cmp(&self, other: &DerivPaths) -> Ordering
fn cmp(&self, other: &DerivPaths) -> Ordering
1.21.0 · 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<DerivPaths> for DerivPaths
impl PartialEq<DerivPaths> for DerivPaths
source§fn eq(&self, other: &DerivPaths) -> bool
fn eq(&self, other: &DerivPaths) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DerivPaths> for DerivPaths
impl PartialOrd<DerivPaths> for DerivPaths
source§fn partial_cmp(&self, other: &DerivPaths) -> Option<Ordering>
fn partial_cmp(&self, other: &DerivPaths) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for DerivPaths
impl StructuralEq for DerivPaths
impl StructuralPartialEq for DerivPaths
Auto Trait Implementations§
impl RefUnwindSafe for DerivPaths
impl Send for DerivPaths
impl Sync for DerivPaths
impl Unpin for DerivPaths
impl UnwindSafe for DerivPaths
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