pub struct Chain<A, B> { /* private fields */ }
Expand description
A combination of two DigitCollection
implementations.
Digits from A
will be selected before digits from B
.
Implementations§
Trait Implementations§
source§impl<A, B> DigitCollection for Chain<A, B>where
A: DigitCollection,
B: DigitCollection,
impl<A, B> DigitCollection for Chain<A, B>where
A: DigitCollection,
B: DigitCollection,
§type Fallback = Chain<<A as DigitCollection>::Fallback, <B as DigitCollection>::Fallback>
type Fallback = Chain<<A as DigitCollection>::Fallback, <B as DigitCollection>::Fallback>
The digit collection that should be used after this collection’s range
is exhausted.
source§fn has_zero_digit(&self) -> bool
fn has_zero_digit(&self) -> bool
Returns true if this collection has a symbol representing
0
at index
0.source§fn zero_based(&self) -> bool
fn zero_based(&self) -> bool
Returns true if this collection should start counting at 1 instead of 0.
This function is only called if
has_zero_digit()
returns false.source§impl<A: PartialEq, B: PartialEq> PartialEq for Chain<A, B>
impl<A: PartialEq, B: PartialEq> PartialEq for Chain<A, B>
impl<A: Copy, B: Copy> Copy for Chain<A, B>
impl<A: Eq, B: Eq> Eq for Chain<A, B>
impl<A, B> StructuralEq for Chain<A, B>
impl<A, B> StructuralPartialEq for Chain<A, B>
Auto Trait Implementations§
impl<A, B> RefUnwindSafe for Chain<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Chain<A, B>
impl<A, B> Sync for Chain<A, B>
impl<A, B> Unpin for Chain<A, B>
impl<A, B> UnwindSafe for Chain<A, B>where
A: UnwindSafe,
B: UnwindSafe,
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, D> NominalSystem<T> for D
impl<T, D> NominalSystem<T> for D
source§fn try_format_nominal(&self, nominal: T) -> Result<NominalString, Error<T>>
fn try_format_nominal(&self, nominal: T) -> Result<NominalString, Error<T>>
Tries to format
nominal
using this system. Read moresource§fn format_nominal(&self, nominal: T) -> NominalString
fn format_nominal(&self, nominal: T) -> NominalString
Formats
nominal
using this system.