pub struct Restrict<T>(/* private fields */);
Expand description
Restricts a set of digits to a specific length.
Implementations§
Trait Implementations§
Source§impl<T> DigitCollection for Restrict<T>where
T: DigitCollection,
impl<T> DigitCollection for Restrict<T>where
T: DigitCollection,
Source§type Fallback = <T as DigitCollection>::Fallback
type Fallback = <T 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.impl<T: Copy> Copy for Restrict<T>
impl<T: Eq> Eq for Restrict<T>
impl<T> StructuralPartialEq for Restrict<T>
Auto Trait Implementations§
impl<T> Freeze for Restrict<T>where
T: Freeze,
impl<T> RefUnwindSafe for Restrict<T>where
T: RefUnwindSafe,
impl<T> Send for Restrict<T>where
T: Send,
impl<T> Sync for Restrict<T>where
T: Sync,
impl<T> Unpin for Restrict<T>where
T: Unpin,
impl<T> UnwindSafe for Restrict<T>where
T: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.