pub struct DerivationSeg<I = NormalIndex>(/* private fields */)
where
I: IdxBase;
Implementations§
Source§impl<I> DerivationSeg<I>where
I: IdxBase,
impl<I> DerivationSeg<I>where
I: IdxBase,
pub fn new(index: I) -> DerivationSeg<I>
pub fn with( iter: impl IntoIterator<Item = I>, ) -> Result<DerivationSeg<I>, Error>
pub fn count(&self) -> u8
pub fn is_distinct(&self, other: &DerivationSeg<I>) -> bool
pub fn at(&self, index: u8) -> Option<I>
pub fn first(&self) -> I
pub fn into_set(self) -> BTreeSet<I>
pub fn to_set(&self) -> BTreeSet<I>
pub fn as_set(&self) -> &BTreeSet<I>
Source§impl DerivationSeg
impl DerivationSeg
pub fn standard() -> DerivationSeg
Trait Implementations§
Source§impl<I> Clone for DerivationSeg<I>
impl<I> Clone for DerivationSeg<I>
Source§fn clone(&self) -> DerivationSeg<I>
fn clone(&self) -> DerivationSeg<I>
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<I> Debug for DerivationSeg<I>
impl<I> Debug for DerivationSeg<I>
Source§impl<I> Display for DerivationSeg<I>
impl<I> Display for DerivationSeg<I>
Source§impl<I> From<&'static [I]> for DerivationSeg<I>where
I: IdxBase,
impl<I> From<&'static [I]> for DerivationSeg<I>where
I: IdxBase,
Source§fn from(indexes: &'static [I]) -> DerivationSeg<I>
fn from(indexes: &'static [I]) -> DerivationSeg<I>
Converts to this type from the input type.
Source§impl<I> From<[I; 2]> for DerivationSeg<I>where
I: IdxBase,
impl<I> From<[I; 2]> for DerivationSeg<I>where
I: IdxBase,
Source§fn from(indexes: [I; 2]) -> DerivationSeg<I>
fn from(indexes: [I; 2]) -> DerivationSeg<I>
Converts to this type from the input type.
Source§impl<I> From<[I; 3]> for DerivationSeg<I>where
I: IdxBase,
impl<I> From<[I; 3]> for DerivationSeg<I>where
I: IdxBase,
Source§fn from(indexes: [I; 3]) -> DerivationSeg<I>
fn from(indexes: [I; 3]) -> DerivationSeg<I>
Converts to this type from the input type.
Source§impl<I> From<[I; 4]> for DerivationSeg<I>where
I: IdxBase,
impl<I> From<[I; 4]> for DerivationSeg<I>where
I: IdxBase,
Source§fn from(indexes: [I; 4]) -> DerivationSeg<I>
fn from(indexes: [I; 4]) -> DerivationSeg<I>
Converts to this type from the input type.
Source§impl<I> FromStr for DerivationSeg<I>
impl<I> FromStr for DerivationSeg<I>
Source§type Err = SegParseError
type Err = SegParseError
The associated error which can be returned from parsing.
Source§fn from_str(
s: &str,
) -> Result<DerivationSeg<I>, <DerivationSeg<I> as FromStr>::Err>
fn from_str( s: &str, ) -> Result<DerivationSeg<I>, <DerivationSeg<I> as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreSource§impl<I> Hash for DerivationSeg<I>
impl<I> Hash for DerivationSeg<I>
Source§impl<I> PartialEq for DerivationSeg<I>
impl<I> PartialEq for DerivationSeg<I>
impl<I> Eq for DerivationSeg<I>
impl<I> StructuralPartialEq for DerivationSeg<I>where
I: IdxBase,
Auto Trait Implementations§
impl<I> Freeze for DerivationSeg<I>
impl<I> RefUnwindSafe for DerivationSeg<I>where
I: RefUnwindSafe,
impl<I> Send for DerivationSeg<I>where
I: Send,
impl<I> Sync for DerivationSeg<I>where
I: Sync,
impl<I> Unpin for DerivationSeg<I>
impl<I> UnwindSafe for DerivationSeg<I>where
I: RefUnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.