pub enum ConversionResult<T> {
Precise(T),
Imprecise(T),
}Expand description
Indicates the preicsision of a conversion
Variants§
Precise(T)
The conversion was precise and the result represents the original exactly.
Imprecise(T)
The conversion was imprecise and the result is as close to the original as possible.
Implementations§
Source§impl<T> ConversionResult<T>
impl<T> ConversionResult<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ConversionResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConversionResult<T>where
T: RefUnwindSafe,
impl<T> Send for ConversionResult<T>where
T: Send,
impl<T> Sync for ConversionResult<T>where
T: Sync,
impl<T> Unpin for ConversionResult<T>where
T: Unpin,
impl<T> UnwindSafe for ConversionResult<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