This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
impl<V: Value> core::str::FromStr for NonNormalizingDec<V> { | |
type Err = &'static str; | |
#[inline(never)] | |
#[rustfmt::skip] | |
fn from_str(s: &str) -> Result<Self, Self::Err> { | |
/// Converts an ASCII decimal digit to an int. | |
/// | |
/// In release builds, no range checks are performed and passing a | |
/// non-digit character will result is undefined (yet safe) behavior. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template<typename WrapperT, typename WrappedT> | |
struct Proxy { | |
virtual WrappedT& valueRef() = 0; | |
virtual const WrappedT& valueCRef() const = 0; | |
virtual ~Proxy() = default; | |
}; | |
template<typename WrapperT, typename WrappedT> | |
struct Add { | |
template<typename RhsT> |