Struct ilex::testing::DigitalMatcher
source · pub struct DigitalMatcher { /* private fields */ }
Expand description
A complex digital token matcher.
This type is used the matcher argument type for complex digital rules, such as those that have signs and exponents.
Implementations§
source§impl DigitalMatcher
impl DigitalMatcher
sourcepub fn new<D: Into<Text>>(
radix: u8,
digits: impl IntoIterator<Item = D>
) -> Self
pub fn new<D: Into<Text>>( radix: u8, digits: impl IntoIterator<Item = D> ) -> Self
Creates a new matcher, with the given radix and digit blocks for the mantissa.
sourcepub fn sign(self, sign: Sign) -> Self
pub fn sign(self, sign: Sign) -> Self
Sets the sign for the most recently added chunk of digits.
Trait Implementations§
source§impl Default for DigitalMatcher
impl Default for DigitalMatcher
source§fn default() -> DigitalMatcher
fn default() -> DigitalMatcher
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DigitalMatcher
impl Send for DigitalMatcher
impl Sync for DigitalMatcher
impl Unpin for DigitalMatcher
impl UnwindSafe for DigitalMatcher
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